Skip to content
Snippets Groups Projects
Unverified Commit e7da0a60 authored by Andreas Klöckner's avatar Andreas Klöckner Committed by GitHub
Browse files

Merge pull request #441 from developmentseed/fix/438-fix-wheel

move directory creation inside the wheel context
parents c7d6facd 5b523d67
No related branches found
No related tags found
No related merge requests found
Pipeline #141078 passed with warnings
...@@ -7,11 +7,11 @@ from delocate import wheeltools ...@@ -7,11 +7,11 @@ from delocate import wheeltools
def add_library(paths): def add_library(paths):
wheel_fnames = glob('/io/wheelhouse/pyopencl*.whl') wheel_fnames = glob('/io/wheelhouse/pyopencl*.whl')
libs_dir = os.path.join('pyopencl', '.libs')
os.makedirs(libs_dir, exist_ok=True)
for fname in wheel_fnames: for fname in wheel_fnames:
print('Processing', fname) print('Processing', fname)
with wheeltools.InWheel(fname, fname): with wheeltools.InWheel(fname, fname):
libs_dir = os.path.join('pyopencl', '.libs')
os.makedirs(libs_dir, exist_ok=True)
for lib_path in paths: for lib_path in paths:
shutil.copy2(lib_path, libs_dir) shutil.copy2(lib_path, libs_dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment