@@ -12,8 +12,6 @@ environment:
12
12
global :
13
13
MINGW_32 : C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin
14
14
MINGW_64 : C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
15
- OPENBLAS_32 : " https://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com/openblas-v0.3.7-win32-gcc_7_1_0.zip"
16
- OPENBLAS_64 : " https://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com/openblas-v0.3.7-win_amd64-gcc_7_1_0.zip"
17
15
18
16
CYTHON_BUILD_DEP : Cython
19
17
TEST_MODE : fast
@@ -88,33 +86,18 @@ install:
88
86
python -c "import sys,platform,struct;
89
87
print(sys.platform, platform.machine(), struct.calcsize('P') * 8, )"
90
88
89
+ # Upgrade to the latest pip, setuptools, and wheel.
90
+ - python -m pip install -U pip setuptools wheel urllib3
91
+
91
92
# Download and install static "openblas.a" to PYTHON\lib
92
93
- ps : |
93
- $PYTHON_ARCH = $env:PYTHON_ARCH
94
94
$PYTHON = $env:PYTHON
95
- If ($PYTHON_ARCH -eq 32) {
96
- $OPENBLAS = $env:OPENBLAS_32
97
- } Else {
98
- $OPENBLAS = $env:OPENBLAS_64
99
- }
100
- $clnt = new-object System.Net.WebClient
101
- $file = "$(New-TemporaryFile).zip"
102
- $tmpdir = New-TemporaryFile | %{ rm $_; mkdir $_ }
95
+ $lib = python numpy/tools/openblas_support.py
103
96
$destination = "$PYTHON\lib\openblas.a"
104
- echo $file
105
- echo $tmpdir
106
- echo $OPENBLAS
107
- $clnt.DownloadFile($OPENBLAS,$file)
108
- Expand-Archive $file $tmpdir
109
- rm $tmpdir\$PYTHON_ARCH\lib\*.dll.a
110
- $lib = ls $tmpdir\$PYTHON_ARCH\lib\*.a | ForEach { ls $_ } | Select-Object -first 1
111
97
echo $lib
112
98
cp $lib $destination
113
99
ls $destination
114
100
115
- # Upgrade to the latest pip, setuptools, and wheel.
116
- - python -m pip install -U pip setuptools wheel urllib3
117
-
118
101
# Install build requirements.
119
102
- pip install "%CYTHON_BUILD_DEP%" --install-option="--no-cython-compile"
120
103
0 commit comments