Skip to content

Commit 4d3c0e3

Browse files
authored
Merge pull request #89 from glensc/python-env
Makefile: Add PYTHON make variable
2 parents 3150ccf + 86553cb commit 4d3c0e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
all: source manylinux
22

3+
PYTHON := python3
34
POLICY := manylinux_2_28
45
PLATFORM := x86_64
56
TAGS := cp312-cp312
@@ -17,9 +18,9 @@ build-wheels:
1718
$(foreach tag,$(TAGS),$(MAKE) build-wheel TAG=$(tag) PATH="/opt/python/$(tag)/bin:$(PATH)";)
1819

1920
build-wheel:
20-
python -m build --wheel --outdir dist-$(POLICY)-$(PLATFORM)-$(TAG)
21+
$(PYTHON) -m build --wheel --outdir dist-$(POLICY)-$(PLATFORM)-$(TAG)
2122
auditwheel repair dist-$(POLICY)-$(PLATFORM)-$(TAG)/*.whl
2223

2324
clean:
24-
python3 setup.py clean --all
25+
$(PYTHON) setup.py clean --all
2526
rm -fr build dist dist-* fuse_python.egg-info wheelhouse

0 commit comments

Comments
 (0)