From 1a0073c9b36449e29b78fdb30a24547f72845930 Mon Sep 17 00:00:00 2001 From: DWesl <22566757+DWesl@users.noreply.github.com> Date: Mon, 28 Aug 2023 17:12:51 -0400 Subject: [PATCH] CI: Exclude import libraries from list of DLLs on Cygwin. There are import libraries in numpy.random that are intended for distribution. This script should not include those, only actual DLLs. --- tools/list_numpy_dlls.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/list_numpy_dlls.sh b/tools/list_numpy_dlls.sh index fedd2097ba67..39aaccf6ed2c 100644 --- a/tools/list_numpy_dlls.sh +++ b/tools/list_numpy_dlls.sh @@ -5,5 +5,5 @@ 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` + grep -E -e '\.dll$'); do echo ${site_packages}/${name}; done` echo ${dll_list}