Skip to content

Commit f560494

Browse files
committed
add
1 parent 67f155c commit f560494

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,16 @@ build_python:: PYPI_VERSION := $(shell pulumictl get version --language python)
8282
build_python:: export PULUMI_SKIP_MISSING_MAPPING_ERROR := ${PULUMI_SKIP_ERROR}
8383
build_python:: install_plugins tfgen # build the python sdk
8484
$(WORKING_DIR)/bin/$(TFGEN) python --overlays provider/overlays/python --out sdk/python/
85-
cd sdk/python/ && \
86-
cp ../../README.md . && \
87-
python3 setup.py clean --all 2>/dev/null && \
88-
rm -rf ./bin/ ../python.bin/ && cp -R . ../python.bin && mv ../python.bin ./bin && \
89-
sed -i.bak -e 's/^VERSION = .*/VERSION = "$(PYPI_VERSION)"/g' -e 's/^PLUGIN_VERSION = .*/PLUGIN_VERSION = "$(VERSION)"/g' ./bin/setup.py && \
90-
rm ./bin/setup.py.bak && \
91-
cd ./bin && python3 setup.py build sdist
85+
cd sdk/python/ && \
86+
cp ../../README.md . && \
87+
python3 -m venv .venv && \
88+
. .venv/bin/activate && \
89+
pip install --upgrade pip setuptools wheel && \
90+
python3 setup.py clean --all 2>/dev/null && \
91+
rm -rf ./bin/ ../python.bin/ && cp -R . ../python.bin && mv ../python.bin ./bin && \
92+
sed -i.bak -e 's/^VERSION = .*/VERSION = "$(PYPI_VERSION)"/g' -e 's/^PLUGIN_VERSION = .*/PLUGIN_VERSION = "$(VERSION)"/g' ./bin/setup.py && \
93+
rm ./bin/setup.py.bak && \
94+
cd ./bin && python3 setup.py build sdist
9295

9396
build_dotnet:: DOTNET_VERSION := $(shell pulumictl get version --language dotnet)
9497
build_dotnet:: export PULUMI_SKIP_MISSING_MAPPING_ERROR := ${PULUMI_SKIP_ERROR}

0 commit comments

Comments
 (0)