File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,16 @@ build_python:: PYPI_VERSION := $(shell pulumictl get version --language python)
8282build_python :: export PULUMI_SKIP_MISSING_MAPPING_ERROR := ${PULUMI_SKIP_ERROR}
8383build_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
9396build_dotnet :: DOTNET_VERSION := $(shell pulumictl get version --language dotnet)
9497build_dotnet :: export PULUMI_SKIP_MISSING_MAPPING_ERROR := ${PULUMI_SKIP_ERROR}
You can’t perform that action at this time.
0 commit comments