From 14aa184d8e7cc9075c9f0982136e4110c00d964b Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 2 Feb 2024 10:50:00 -0800 Subject: [PATCH 1/2] .github/workflows/buildwheel.yml: Build sdist using https://github.com/pypa/build --- .github/workflows/buildwheel.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/buildwheel.yml b/.github/workflows/buildwheel.yml index 89a35eac..1f298983 100644 --- a/.github/workflows/buildwheel.yml +++ b/.github/workflows/buildwheel.yml @@ -68,9 +68,8 @@ jobs: with: python-version: '3.12' - - run: pip install --upgrade pip - - run: pip install cython setuptools - - run: python setup.py sdist + - run: pip install build + - run: python -m build --sdist - uses: actions/upload-artifact@v4 with: From 653a212523f063b9d36eb33fe7ef49d9b4075819 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 2 Feb 2024 10:52:45 -0800 Subject: [PATCH 2/2] bin/pip_install_ubuntu.sh: Use build isolation --- bin/pip_install_ubuntu.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bin/pip_install_ubuntu.sh b/bin/pip_install_ubuntu.sh index ac9d9491..b1c25444 100755 --- a/bin/pip_install_ubuntu.sh +++ b/bin/pip_install_ubuntu.sh @@ -41,16 +41,12 @@ cd .. ls -l /usr/local/lib sudo ldconfig /usr/local/lib -# Python build requirements. Ideally these would be in pyproject.toml, but -# first need to migrate from setup.py to pyproject.toml. -pip install numpy cython setuptools wheel - # Install from checkout (or sdist). echo ----------------------------------------------------------- echo echo Running: -echo $ pip install --no-binary :all: --no-build-isolation $1 +echo $ pip install --no-binary python-flint $1 echo echo ----------------------------------------------------------- -pip install --no-binary :all: --no-build-isolation $1 +pip install --no-binary python-flint $1