File: copy-conda-package.py

package info (click to toggle)
python-zstandard 0.24.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,912 kB
  • sloc: ansic: 42,099; python: 8,683; makefile: 22; sh: 14
file content (19 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os
import shutil

from conda_build.config import Config

build_dir = Config().bldpkgs_dir
dest_dir = "dist"

if not os.path.exists(dest_dir):
    os.mkdir(dest_dir)

print("scanning %s for packages" % build_dir)
for p in os.listdir(build_dir):
    if not p.endswith(".conda"):
        continue

    source = os.path.join(build_dir, p)
    print("copying %s" % source)
    shutil.copyfile(source, os.path.join(dest_dir, p))