Skip to content
Snippets Groups Projects
Commit 28a00023 authored by Drew Bollinger's avatar Drew Bollinger
Browse files

copy scripts to lib directory

parent a36176cd
No related branches found
No related tags found
No related merge requests found
import sys import sys
import os.path import os
import shutil import shutil
from glob import glob from glob import glob
...@@ -7,11 +7,13 @@ from delocate import wheeltools ...@@ -7,11 +7,13 @@ 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):
for lib_path in paths: for lib_path in paths:
shutil.copy2(lib_path, os.path.join('pyopencl', '.libs')) shutil.copy2(lib_path, libs_dir)
def main(): def main():
args = list(sys.argv) args = list(sys.argv)
......
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