summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2019-02-22 10:42:02 -0800
committerTyler Reddy <tyler.je.reddy@gmail.com>2019-02-22 10:42:02 -0800
commit468539aa097c9f7c6753a66185588a2438145757 (patch)
treeb2c1d9dea970e41a5cea75dc40ab2b1c2d0ec58a /azure-pipelines.yml
parent67e20d09d3d83eed4c8ce06cf5d5dd6e0b38b856 (diff)
downloadnumpy-468539aa097c9f7c6753a66185588a2438145757.tar.gz
BLD: Windows absolute path DLL loading
* add an Azure CI test to mimic recent Anaconda DLL path resolution restrictions that prevent NumPy imports * patch numpy.core initialization to use absolute DLL path loading to overcome the scenario described above
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 6d6039971..f00cd1e73 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -177,6 +177,8 @@ jobs:
pip install $_.FullName
}
displayName: 'Build NumPy'
+ - 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
displayName: 'Run NumPy Test Suite'
- task: PublishTestResults@2