From 864919973f73ec2c6ae6ca01be7fe5e8b950df12 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 17 Jul 2024 17:07:23 -0400 Subject: [PATCH] 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. --- packaging/builddist.sh | 3 +-- 1 file changed, 1 insertion(+), 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