Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit a7c0a16

Browse files
authored
Merge pull request #89 from pv/numpy-distutils-38
MAINT: replace numpy distutils also for Python >= 3.8
2 parents af06269 + 0321c1a commit a7c0a16

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

appveyor.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,15 @@ install:
123123
# Install build requirements.
124124
- pip install "%CYTHON_BUILD_DEP%" "%NUMPY_BUILD_DEP%" "%PYBIND11_BUILD_DEP%"
125125

126-
# Replace numpy distutils with a version that can build with msvc + mingw-gfortran.
126+
# Replace numpy distutils with a version that can build with msvc + mingw-gfortran,
127+
# and writes __config__.py suitable for Python 3.8. (Requires Numpy >= 1.18.0)
127128
- ps: |
128129
$PYTHON_VERSION = $env:PYTHON_VERSION
129-
If ([System.Version]"$PYTHON_VERSION" -lt [System.Version]"3.8") {
130130
$NumpyDir = $((python -c 'import os; import numpy; print(os.path.dirname(numpy.__file__))') | Out-String).Trim()
131131
rm -r -Force "$NumpyDir\distutils"
132132
mv numpy-distutils\numpy\distutils $NumpyDir
133133
rm -r -Force "$NumpyDir\compat"
134134
mv numpy-distutils\numpy\compat $NumpyDir
135-
}
136135
137136
build_script:
138137
# we use a distribution file to assist in loading

0 commit comments

Comments
 (0)