@@ -192,7 +192,7 @@ quiet_cmd_pytest = TEST $@
192# .. _installing: https://packaging.python.org/tutorials/installing-packages/
192# .. _installing: https://packaging.python.org/tutorials/installing-packages/
194quiet_cmd_pybuild = BUILD $@
194quiet_cmd_pybuild = BUILD $@
195− cmd_pybuild = $(PY_ENV_BIN)/$(PYTHON) setup.py \
195+ cmd_pybuild = $(PY_ENV_BIN)/python setup.py \
196 sdist -d $(PYDIST) \
196 sdist -d $(PYDIST) \
197 bdist_wheel --bdist-dir $(PYBUILD) -d $(PYDIST)
197 bdist_wheel --bdist-dir $(PYBUILD) -d $(PYDIST)
@@ -284,7 +284,7 @@ pyenv-python: pyenv-install
285# https://github.com/pypa/twine
285# https://github.com/pypa/twine
286PHONY += upload-pypi
286PHONY += upload-pypi
287−upload-pypi: pyclean pybuild
287+upload-pypi: pyclean pyenvinstall pybuild
288 @$(PY_ENV_BIN)/twine upload $(PYDIST)/*
288 @$(PY_ENV_BIN)/twine upload $(PYDIST)/*
290.PHONY: $(PHONY)
290.PHONY: $(PHONY)