Skip to content

Commit 8c2a322

Browse files
committed
Add wheels Makefile target
1 parent 91a741a commit 8c2a322

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
VERSION := $(shell python setup.py --version)
22

33
export COVERAGE_RCFILE := pyproject.toml
4+
export CIBW_ENVIRONMENT_PASS_LINUX := CFLAGS PIP_CONFIG_SETTINGS DEPENDENCY_INJECTOR_LIMITED_API
5+
export PIP_CONFIG_SETTINGS ?= build_ext=-j4
6+
export DEPENDENCY_INJECTOR_LIMITED_API ?= 1
7+
export CFLAGS ?= -g0
48

59
clean:
610
# Clean sources
@@ -63,3 +67,6 @@ publish:
6367
# Create and upload tag
6468
git tag -a $(VERSION) -m 'version $(VERSION)'
6569
git push --tags
70+
71+
wheels:
72+
cibuildwheel --output-dir wheelhouse

0 commit comments

Comments
 (0)