summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-07-17 17:07:23 -0400
committerEli Schwartz <eschwartz93@gmail.com>2024-07-17 17:15:46 -0400
commit864919973f73ec2c6ae6ca01be7fe5e8b950df12 (patch)
treea06dceb0ed9187895ad6509186059c61da46176c
parent377548fc5a97df6c86ae3b466740e23bdd45c02d (diff)
downloadmeson-864919973f73ec2c6ae6ca01be7fe5e8b950df12.tar.gz
update script to build releases, to also build wheels
The commented-out command used "bdist", which produces a "dumb" format (that's what the setuptools docs call it! it's an alias for "bdist_dumb"). A tarball that can be extracted to / and installs a system image containing e.g. /usr/lib/python3.12 and /usr/share/, but no metadata outside of that. It apparently may have also generated a wheel at some point? But current versions of setuptools do no such thing. And wheels are what we actually want, since we uploaded them for years and they are faster for PyPI users to install. The canonical command name for producing wheels is actually "bdist_wheel" instead of "bdist_dumb". No clue what setuptools changed, about the latter, but the former definitely works.
-rwxr-xr-xpackaging/builddist.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/packaging/builddist.sh b/packaging/builddist.sh
index 8a83c48be..edcf3ec09 100755
--- a/packaging/builddist.sh
+++ b/packaging/builddist.sh
@@ -13,8 +13,7 @@ mkdir $GENDIR
cp -r .git $GENDIR
cd $GENDIR
git reset --hard
-#python3 setup.py sdist bdist
-python3 setup.py sdist
+python3 setup.py sdist bdist_wheel
cp dist/* ../dist
cd ..
rm -rf $GENDIR