3
# copy-swig-py.sh: copy the Python bindings' .py files to the install locn
5
# USAGE: copy-swig-py.sh PYTHON INSTALL SOURCE_DIR TARGET_DIR DESTDIR
8
if test "$#" != 5; then
9
echo USAGE: $0 PYTHON INSTALL SOURCE_DIR TARGET_DIR DESTDIR
18
# cd to the source directory so that we can get filenames rather than paths
21
# copy all the .py files to the target location
23
$install "$file" "${destdir}${instdir}/${file}"
26
# precompile all of the files
27
"$pyprog" -c "import compileall; compileall.compile_dir(\"${destdir}${instdir}\",1,\"${instdir}\")"