Skip to content

Commit 0293bf6

Browse files
authored
Dynamically include numpy headers (#429)
* Dynamically include numpy headers * Add `pyproject.toml` and `build-constraints.txt` with numpy version pins for building wheels with `pip` and `wheelwright` * Update `setup.py` to add current numpy include directory * Assume `cython` and `numpy` are installed for `setup.py` * Remove included numpy headers * Use --only-binary in CI * Fix preshed pins * Use --only-binary for package install * Remove blis from pyproject.toml * Fix preshed pins in pyproject.toml * Revert "Remove blis from pyproject.toml" This reverts commit 8f52c14.
1 parent 57d44f3 commit 0293bf6

33 files changed

+41
-10217
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
build/
2+
dist/
3+
*.egg-info/
24
.env/
35
.~env/
46
.python/

MANIFEST.in

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
global-include *.h *.S *.c *.cu
2-
recursive-include include *.cpp
32
include buildbot.json
43
include LICENSE
54
include README.rst

azure-pipelines.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ jobs:
7171
architecture: 'x64'
7272

7373
- script: |
74-
python -m pip install --upgrade pip
74+
python -m pip install --upgrade pip setuptools
7575
pip install -r requirements.txt --prefer-binary
7676
displayName: 'Install dependencies'
7777
78-
- script: pip install -e .
78+
- script: |
79+
pip install -e . --only-binary :all:
7980
displayName: 'Install'
8081
8182
- script: python -m pytest thinc

build-constraints.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# build version constraints for use with wheelwright + multibuild
2+
numpy==1.15.0; python_version<='3.7'
3+
numpy==1.17.3; python_version=='3.8'
4+
numpy==1.19.3; python_version=='3.9'
5+
numpy; python_version>='3.10'

0 commit comments

Comments
 (0)