diff options
| author | DWesl <22566757+DWesl@users.noreply.github.com> | 2021-10-28 19:37:54 -0400 |
|---|---|---|
| committer | DWesl <22566757+DWesl@users.noreply.github.com> | 2021-10-28 19:37:54 -0400 |
| commit | 9ac4819d4722d2da4fcf1d715fb7a754f17ce19c (patch) | |
| tree | f3368535abb46425c2c4c80dfc5e799068f9cf33 /tools | |
| parent | 4205ee70e47482844db9695cf5f8fcae578eb610 (diff) | |
| download | numpy-9ac4819d4722d2da4fcf1d715fb7a754f17ce19c.tar.gz | |
TST: Rebase NumPy dlls before running test in Cygwin CI.
Also fix some bashisms in a couple of scripts.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/list_installed_dll_dependencies_cygwin.sh | 9 | ||||
| -rw-r--r-- | tools/list_numpy_dlls.sh | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/tools/list_installed_dll_dependencies_cygwin.sh b/tools/list_installed_dll_dependencies_cygwin.sh index 240f26800..ee06ae0d0 100644 --- a/tools/list_installed_dll_dependencies_cygwin.sh +++ b/tools/list_installed_dll_dependencies_cygwin.sh @@ -12,10 +12,7 @@ # /bin/sh py_ver=${1} -site_packages=$(python${py_ver} -m pip show numpy | \ - grep Location | cut -d " " -f 2 -); -dll_list=$(for name in $(python${py_ver} -m pip show -f numpy | \ - grep -F .dll); do echo ${site_packages}/${name}; done) +dll_list=`/bin/dash tools/list_numpy_dlls.sh ${py_ver}` echo "Checks for existence, permissions and file type" ls -l ${dll_list} file ${dll_list} @@ -29,10 +26,10 @@ cd dist/ for name in ${dll_list}; do echo ${name} - ext_module=$(echo ${name} | \ + ext_module=`echo ${name} | \ sed -E \ -e "s/^\/+(home|usr).*?site-packages\/+//" \ -e "s/.cpython-3.m?-x86(_64)?-cygwin.dll$//" \ - -e "s/\//./g") + -e "s/\//./g"` python${py_ver} -c "import ${ext_module}" done diff --git a/tools/list_numpy_dlls.sh b/tools/list_numpy_dlls.sh new file mode 100644 index 000000000..fedd2097b --- /dev/null +++ b/tools/list_numpy_dlls.sh @@ -0,0 +1,9 @@ +#!/bin/dash +# Print the list of dlls installed by NumPy + +py_ver=${1} +site_packages=`python${py_ver} -m pip show numpy | \ + grep Location | cut -d " " -f 2 -`; +dll_list=`for name in $(python${py_ver} -m pip show -f numpy | \ + grep -F .dll); do echo ${site_packages}/${name}; done` +echo ${dll_list} |
