Skip to content

Commit

Permalink
make distinction between python VERSION and PYPIVERSION for install v…
Browse files Browse the repository at this point in the history
…s release
  • Loading branch information
EvanBoyle committed Mar 20, 2020
1 parent 269cef2 commit 5e1f597
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/python/Makefile
@@ -1,6 +1,7 @@
PROJECT_NAME := Pulumi Python SDK
LANGHOST_PKG := github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python
VERSION := $(shell ../../scripts/get-py-version HEAD)
VERSION := $(shell ../../scripts/get-version HEAD)
PYPI_VERSION := $(shell ../../scripts/get-py-version HEAD)

PYENV := ./env
PYENVSRC := $(PYENV)/src
Expand All @@ -13,7 +14,7 @@ ensure::

build_package::
rm -rf $(PYENVSRC) && cp -R ./lib/. $(PYENVSRC)/
sed -i.bak "s/\$${VERSION}/$(VERSION)/g" $(PYENVSRC)/setup.py && rm $(PYENVSRC)/setup.py.bak
sed -i.bak "s/\$${VERSION}/$(PYPI_VERSION)/g" $(PYENVSRC)/setup.py && rm $(PYENVSRC)/setup.py.bak
cp ../../README.md $(PYENVSRC)
cd $(PYENVSRC) && pipenv run python setup.py build bdist_wheel --universal

Expand Down

0 comments on commit 5e1f597

Please sign in to comment.