Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# pass TRAVIS_TAG to the container so that it can build wheels with the correct version number
os.environ["CIBW_ENVIRONMENT"] = (
os.environ["CIBW_ENVIRONMENT"]
+ " TRAVIS_TAG=" + os.environ["TRAVIS_TAG"]
)
elif platform.system() == "Windows":
init_vsvars()
run("pip install cibuildwheel==1.0.0")
run("cibuildwheel --output-dir wheelhouse")
if have_credentials:
print("upload wheels", platform.system())
input_dir = "wheelhouse"
output_dir = f"gs://{GCS_BUCKET}/builds/"
for filename in bf.listdir(input_dir):
src = bf.join(input_dir, filename)
dst = bf.join(output_dir, filename)
print(src, "=>", dst)
bf.copy(src, dst, overwrite=True)