Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 1e6dae6

Browse files
committed
update .appveyor to get openblas from numpy/tools/openblas_support
1 parent 52f4b91 commit 1e6dae6

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

.appveyor.yml

+4-21
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ environment:
1212
global:
1313
MINGW_32: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin
1414
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"
1715

1816
CYTHON_BUILD_DEP: Cython
1917
TEST_MODE: fast
@@ -88,33 +86,18 @@ install:
8886
python -c "import sys,platform,struct;
8987
print(sys.platform, platform.machine(), struct.calcsize('P') * 8, )"
9088
89+
# Upgrade to the latest pip, setuptools, and wheel.
90+
- python -m pip install -U pip setuptools wheel urllib3
91+
9192
# Download and install static "openblas.a" to PYTHON\lib
9293
- ps: |
93-
$PYTHON_ARCH = $env:PYTHON_ARCH
9494
$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
10396
$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
11197
echo $lib
11298
cp $lib $destination
11399
ls $destination
114100
115-
# Upgrade to the latest pip, setuptools, and wheel.
116-
- python -m pip install -U pip setuptools wheel urllib3
117-
118101
# Install build requirements.
119102
- pip install "%CYTHON_BUILD_DEP%" --install-option="--no-cython-compile"
120103

0 commit comments

Comments
 (0)