mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-26 15:26:12 +00:00
When building a Python wheel using `python -m build --wheel ...`, temporary build files (including extension .so) are placed in ./build/... from where they can be retrieved without having to install the just-built wheel. Do both and get rid of `pip` invocations.
21 lines
382 B
Makefile
21 lines
382 B
Makefile
R_DESTDIR ?=
|
|
PREFIX ?= /usr/local
|
|
|
|
PY ?= python3
|
|
|
|
|
|
# =====
|
|
all: root
|
|
root: $(shell find src -type f,l) setup.py
|
|
$(info == PY_BUILD ustreamer-*.so)
|
|
rm -rf root
|
|
$(ECHO) $(PY) -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
|
|
install:
|
|
$(PY) -m installer --prefix=$(PREFIX) $(if $(R_DESTDIR),--destdir=$(R_DESTDIR),) dist/*.whl
|
|
|
|
|
|
clean:
|
|
rm -rf root dist ustreamer.egg-info
|