Skip to content

Commit

Permalink
Dynamically include numpy headers (#429)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
adrianeboyd authored Nov 23, 2020
1 parent 57d44f3 commit 0293bf6
Show file tree
Hide file tree
Showing 33 changed files with 41 additions and 10,217 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
build/
dist/
*.egg-info/
.env/
.~env/
.python/
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
global-include *.h *.S *.c *.cu
recursive-include include *.cpp
include buildbot.json
include LICENSE
include README.rst
Expand Down
5 changes: 3 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ jobs:
architecture: 'x64'

- script: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools
pip install -r requirements.txt --prefer-binary
displayName: 'Install dependencies'
- script: pip install -e .
- script: |
pip install -e . --only-binary :all:
displayName: 'Install'
- script: python -m pytest thinc
Expand Down
5 changes: 5 additions & 0 deletions build-constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# build version constraints for use with wheelwright + multibuild
numpy==1.15.0; python_version<='3.7'
numpy==1.17.3; python_version=='3.8'
numpy==1.19.3; python_version=='3.9'
numpy; python_version>='3.10'
Loading

0 comments on commit 0293bf6

Please sign in to comment.