diff --git a/scripts/fix-wheel.py b/scripts/fix-wheel.py index 5c43f85e337fa5216cdbbd8f402f1b587ad80754..df8f29e2c2609af915b474d9dfccc3eb0494555c 100644 --- a/scripts/fix-wheel.py +++ b/scripts/fix-wheel.py @@ -7,11 +7,11 @@ from delocate import wheeltools def add_library(paths): 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: print('Processing', 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: shutil.copy2(lib_path, libs_dir)