Skip to content

Commit

Permalink
Re-compress the Python Wheel package with bzip2 to shave off 7 MB.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas11 committed Feb 24, 2025
1 parent d5b0de5 commit e2da4f6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,18 @@ export FAKE_MODULE
./venv/bin/python -m pip install build && \
cd ./bin && \
../venv/bin/python -m build .

# Re-encrypt with bzip2 to shrink the package a bit, see #3977
# The top-level contents of the wheel are pulumi_azure_native and pulumi_azure_native-2.0.0a0+dev.dist-info.
cd sdk/python/bin/dist && \
whl=$$(ls *.whl) && \
echo "whl = $$whl" && \
unzip -q $$whl && \
dist=$$(ls -d *.dist-info) && \
echo "dist = $$dist" && \
rm -vrf $$whl && \
zip -Z bzip -9 -q -r $$whl/* pulumi_azure_native $$dist/*

@touch $@

.make/build_dotnet: .make/generate_dotnet
Expand Down

0 comments on commit e2da4f6

Please sign in to comment.