Skip to content

Commit 71fcb22

Browse files
committed
Call pipenv directly in Makefile.
1 parent cc2c8fe commit 71fcb22

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
PYTHON = python
21

32
test: install
4-
$(PYTHON) -m unittest
3+
pipenv run python -m unittest
54

65
install: build
7-
$(PYTHON) setup.py develop
6+
pipenv run python setup.py develop
87

98
build: Makefile module.c third-party/quickjs.c third-party/quickjs.h
10-
$(PYTHON) setup.py build
9+
pipenv run python setup.py build
1110

1211
format:
13-
$(PYTHON) -m yapf -i -r --style .style.yapf *.py
12+
pipenv run python -m yapf -i -r --style .style.yapf *.py
1413
clang-format-7 -i module.c
1514

1615
distribute: test
1716
rm -rf dist/
18-
$(PYTHON) setup.py sdist
17+
pipenv run python setup.py sdist
1918

2019
upload-test: distribute
21-
$(PYTHON) -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
20+
pipenv run python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
2221

2322
upload: distribute
24-
$(PYTHON) -m twine upload dist/*
23+
pipenv run python -m twine upload dist/*
2524

2625
clean:
2726
rm -rf build/ dist/

0 commit comments

Comments
 (0)