diff options
author | Tyler Reddy <tyler.je.reddy@gmail.com> | 2019-02-22 13:21:15 -0800 |
---|---|---|
committer | Tyler Reddy <tyler.je.reddy@gmail.com> | 2019-02-22 14:56:45 -0800 |
commit | 922507bd968cc5e1c17eaf940d1eba3a4b8393b4 (patch) | |
tree | 67c3fff224ce3a05b6137f83a7eb8b5147e7cfb6 /azure-pipelines.yml | |
parent | 468539aa097c9f7c6753a66185588a2438145757 (diff) | |
download | numpy-922507bd968cc5e1c17eaf940d1eba3a4b8393b4.tar.gz |
MAINT: probe multiple DLL handling on Win
* Test for DLL pollution in numpy/.libs/ in Azure
CI Windows Python 3.6 builds
* emit a warning with DLL names when > 1 are present
in numpy/.libs/
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f00cd1e73..f964fffaa 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -177,6 +177,13 @@ jobs: pip install $_.FullName } displayName: 'Build NumPy' + - bash: | + pushd . && cd .. && target=$(python -c "import numpy, os; print(os.path.abspath(os.path.join(os.path.dirname(numpy.__file__), '.libs')))") && popd + pip download -d destination --only-binary --no-deps numpy==1.14 + cd destination && unzip numpy*.whl && cp numpy/.libs/*.dll $target + ls $target + displayName: 'Add extraneous & older DLL to numpy/.libs to probe DLL handling robustness' + condition: eq(variables['PYTHON_VERSION'], '3.6') - script: pushd . && cd .. && python -c "from ctypes import windll; windll.kernel32.SetDefaultDllDirectories(0x00000800); import numpy" && popd displayName: 'For gh-12667; Windows DLL resolution' - script: python runtests.py -n --show-build-log --mode=$(TEST_MODE) -- -rsx --junitxml=junit/test-results.xml |