Skip to content

Commit 5301e67

Browse files
committed
Repair the built wheel using auditwheel
1 parent 331f236 commit 5301e67

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/dist/
2+
/wheelhouse/
23
__pycache__/
34
.pytest_cache/
45
.mypy_cache/

Makefile

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
ifneq ($(strip $(AUDITWHEEL)),)
2+
WHEEL_OUTDIR = ./wheelhouse
3+
else
4+
WHEEL_OUTDIR = ./dist
5+
endif
16
PYTHON = python
27
SPHINX_APIDOC = sphinx-apidoc
38
SPHINX_BUILD = sphinx-build
@@ -12,25 +17,31 @@ all: lint type test dist doc
1217
req:
1318
$(PYTHON) -m pip install --quiet --upgrade pip
1419
$(PYTHON) -m pip install --quiet setuptools wheel build cython pytest mypy flake8 sphinx sphinx-rtd-theme myst-parser
20+
ifneq ($(strip $(AUDITWHEEL)),)
21+
$(PYTHON) -m pip install --quiet auditwheel
22+
endif
1523

1624
lint:
1725
$(PYTHON) -m flake8 --doctests $(PYROOTDIR)
1826

1927
type:
20-
$(PYTHON) -m pip install --quiet --force-reinstall ./dist/*.whl
28+
$(PYTHON) -m pip install --quiet --force-reinstall $(WHEEL_OUTDIR)/softfloatpy-*.whl
2129
$(PYTHON) -m mypy --strict $(PYROOTDIR)
2230

2331
test:
24-
$(PYTHON) -m pip install --quiet --force-reinstall ./dist/*.whl
32+
$(PYTHON) -m pip install --quiet --force-reinstall $(WHEEL_OUTDIR)/softfloatpy-*.whl
2533
$(PYTHON) -m pytest $(PYROOTDIR) -vv --doctest-modules
2634

2735
dist:
2836
$(PYTHON) -m build
37+
ifneq ($(strip $(AUDITWHEEL)),)
38+
auditwheel repair dist/softfloatpy-*.whl
39+
endif
2940

3041
doc:
31-
$(PYTHON) -m pip install --quiet --force-reinstall ./dist/*.whl
42+
$(PYTHON) -m pip install --quiet --force-reinstall $(WHEEL_OUTDIR)/softfloatpy-*.whl
3243
$(SPHINX_APIDOC) -T -f -o $(PYDOCSRCDIR)/apidoc $(PYROOTDIR)/src
3344
$(SPHINX_BUILD) -b html $(PYDOCSRCDIR) $(PYDOCOUTDIR)/html
3445

3546
clean:
36-
rm -rf $(PYDOCOUTDIR) $(PYROOTDIR)/src/softfloatpy.egg-info ./dist
47+
rm -rf $(PYDOCOUTDIR) $(PYROOTDIR)/src/softfloatpy.egg-info ./dist ./wheelhouse

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dictionaries: []
55
words:
66
- apidoc
77
- Arihiro
8+
- auditwheel
89
- bfloat
910
- bint
1011
- bysource

0 commit comments

Comments
 (0)