mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-26 15:26:12 +00:00
Merge pull request #333 from intelfx/work/fix-makefile
python: Makefile: use `python -m installer`; do not install while building
This commit is contained in:
2
Makefile
2
Makefile
@@ -72,7 +72,7 @@ apps:
|
|||||||
|
|
||||||
python:
|
python:
|
||||||
$(MAKE) -C python
|
$(MAKE) -C python
|
||||||
$(ECHO) ln -sf python/root/usr/lib/python*/site-packages/*.so .
|
$(ECHO) ln -sf python/build/lib.linux-*/*.so -t .
|
||||||
|
|
||||||
|
|
||||||
janus:
|
janus:
|
||||||
|
|||||||
@@ -9,12 +9,11 @@ all: root
|
|||||||
root: $(shell find src -type f,l) setup.py
|
root: $(shell find src -type f,l) setup.py
|
||||||
$(info == PY_BUILD ustreamer-*.so)
|
$(info == PY_BUILD ustreamer-*.so)
|
||||||
rm -rf root
|
rm -rf root
|
||||||
$(ECHO) $(PY) -m build --skip-dependency-check --no-isolation
|
$(ECHO) $(PY) -m build --wheel --skip-dependency-check --no-isolation
|
||||||
$(ECHO) $(PY) -m pip install dist/*.whl --ignore-installed --root=./root
|
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(PY) -m pip install dist/*.whl --ignore-installed --prefix=$(PREFIX) --root=$(if $(R_DESTDIR),$(R_DESTDIR),/)
|
$(PY) -m installer --prefix=$(PREFIX) $(if $(R_DESTDIR),--destdir=$(R_DESTDIR),) dist/*.whl
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
Reference in New Issue
Block a user