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

Commit be276d2

Browse files
committed
handle LICENSE, and for win32 openblas
1 parent 585ffa1 commit be276d2

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

azure/posix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
before_install
7272
7373
clean_code $REPO_DIR $BUILD_COMMIT
74+
./patch_code.sh $REPO_DIR
7475
build_wheel $REPO_DIR $PLAT
7576
displayName: Build wheel
7677
condition: eq(variables['SKIP_BUILD'], 'false')

azure/windows.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,20 @@ jobs:
6363
- bash: |
6464
set -e
6565
pushd numpy
66-
pip install twine wheel
66+
pip install twine wheel urllib3
67+
# a bit overkill, all we really need is cython
6768
pip install --timeout=60 -r test_requirements.txt
69+
70+
# handle license
71+
cp ../LICENSE_win32.txt LICENSE.txt
72+
73+
# Download and install static "openblas.a" to PYTHON/lib
74+
PYTHON_DIR=$(python -c"import sys, os; print(os.path.dirname(sys.executable))")
75+
LIB=$(python tools/openblas_support.py)
76+
echo Copying $LIB to $PYTHON_DIR/lib
77+
cp $LIB $PYTHON_DIR/lib/openblas.a
78+
79+
# Build the wheel
6880
python setup.py build
6981
python setup.py bdist_wheel
7082
ls dist
@@ -77,7 +89,7 @@ jobs:
7789
source extra_functions.sh
7890
source config.sh
7991
setup_test_venv
80-
pip install -r test_requirements.txt
92+
pip install -r numpy/test_requirements.txt
8193
pip install numpy/dist/numpy-*.whl
8294
run_tests
8395
teardown_test_venv

0 commit comments

Comments
 (0)