Skip to content

Commit 3dedb6c

Browse files
committed
Makefile: Use pip to deploy/uninstall the runperf
"develop --uninstall" is deprecated. Signed-off-by: Lukáš Doktor <[email protected]>
1 parent 48cfd73 commit 3dedb6c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
ifndef PYTHON
22
PYTHON=$(shell which python3 2>/dev/null || which python 2>/dev/null)
33
endif
4-
PYTHON_DEVELOP_ARGS=$(shell if ($(PYTHON) setup.py develop --help 2>/dev/null | grep -q '\-\-user'); then echo "--user"; else echo ""; fi)
54

65
all:
76
@echo
@@ -26,12 +25,11 @@ coverage: clean develop
2625
./selftests/run_coverage
2726

2827
develop:
29-
$(PYTHON) setup.py develop $(PYTHON_DEVELOP_ARGS)
28+
$(PYTHON) -m pip install -e .
3029

3130
clean:
32-
$(PYTHON) setup.py clean
31+
$(PYTHON) -m pip uninstall -y runperf
3332
rm -rf build/ MANIFEST BUILD BUILDROOT SPECS RPMS SRPMS SOURCES dist/ docs/build/
34-
$(PYTHON) setup.py develop --uninstall $(PYTHON_DEVELOP_ARGS)
3533
rm -rf *.egg-info
3634
find . -name '*.pyc' -delete
3735

0 commit comments

Comments
 (0)