File: Makefile

package info (click to toggle)
python-fuse 2%3A1.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 368 kB
  • sloc: ansic: 1,388; python: 1,378; makefile: 25; sh: 10
file content (25 lines) | stat: -rw-r--r-- 670 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
all: source manylinux

POLICY := manylinux_2_28
PLATFORM := x86_64
TAGS := cp312-cp312

source:
	python3 setup.py sdist

manylinux:
	docker run --rm -v $(PWD):/io -w /io quay.io/pypa/$(POLICY)_$(PLATFORM) \
	    make build-wheels \
            POLICY=$(POLICY) PLATFORM=$(PLATFORM) TAGS="$(TAGS)"

build-wheels:
	yum install -y fuse-devel
	$(foreach tag,$(TAGS),$(MAKE) build-wheel TAG=$(tag) PATH="/opt/python/$(tag)/bin:$(PATH)";)

build-wheel:
	python -m build --wheel --outdir dist-$(POLICY)-$(PLATFORM)-$(TAG)
	auditwheel repair dist-$(POLICY)-$(PLATFORM)-$(TAG)/*.whl

clean:
	python3 setup.py clean --all
	rm -fr build dist dist-* fuse_python.egg-info wheelhouse