From b974c3bb0582ae9df9ba79c3b7d0798060a0d3fd Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Tue, 6 Jul 2021 23:41:50 -0700 Subject: Add Apple wheel instructions to Makefile --- Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c2a3463..8239ae0 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ invalidate-cppcov: .PHONY: build build: invalidate-cppcov - python setup.py build_ext --inplace + # python setup.py build_ext --inplace + python -m pip install -e . .PHONY: clean-coverage-pycov clean-coverage-pycov: @@ -33,6 +34,23 @@ clean: clean-coverage test: build pytest -n auto +version := $(subst v,,$(shell git describe --tags)) +macwheel := pikepdf-$(version)-cp39-cp39-macosx_11_0_arm64.whl +#$(info $$version is [${version}]) +#$(info $$macwheel is [${macwheel}]) + +$(macwheel): clean build + rm pikepdf*.whl + python -m pip wheel . + mv pikepdf*.whl $(macwheel) + +fixed/$(macwheel): $(macwheel) + delocate-wheel -w fixed -v $(macwheel) + +.PHONY: apple-silicon-wheels +apple-silicon-wheels: fixed/$(macwheel) + twine upload fixed/$(macwheel) + .PHONY: pycov pycov: clean-coverage-pycov pytest --cov-report html --cov=src -n auto -- cgit v1.2.3