Skip to content

Conversation

jakelishman
Copy link
Member

@jakelishman jakelishman commented Jul 29, 2024

ibm-platform-services<=0.55.1 only supply an sdist on PyPI, and the setup.py of that sdist imports the deprecated setuptools.commands.test, which is removed in setuptools==72.0.0. This makes the package unbuildable with the latest setuptools, and it's hard to thread through a constraint on build dependencies right into the depths of recursive pip/tox/whatever commands.

This commit forcibly builds the bad dependency with an older version of setuptools and adds the wheel to the pip cache, so subsequent installation commands will be able to install from a pre-built wheel regardless of the setuptools version.

@jakelishman jakelishman force-pushed the pin-setuptools branch 11 times, most recently from 11e82ed to fb099f5 Compare July 29, 2024 12:27
`ibm-platform-services<=0.55.1` only supply an `sdist` on PyPI, and the
`setup.py` of that sdist imports the deprecated
`setuptools.commands.test`, which is removed in `setuptools==72.0.0`.
This makes the package unbuildable with the latest `setuptools`, and
it's hard to thread through a constraint on build dependencies right
into the depths of recursive pip/tox/whatever commands.

This commit forcibly builds the bad dependency with an older version of
`setuptools` and adds the wheel to the pip cache, so subsequent
installation commands will be able to install from a pre-built wheel
regardless of the `setuptools` version.
@jakelishman jakelishman changed the title Pin version of setuptools to known-good version Build ibm-platform-services with known-good setuptools Jul 29, 2024
@ElePT ElePT mentioned this pull request Jul 29, 2024
Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun. Thanks for looking into it @jakelishman :)

@jakelishman jakelishman merged commit d6599c4 into Qiskit:main Jul 29, 2024
10 checks passed
@jakelishman jakelishman deleted the pin-setuptools branch July 29, 2024 12:34
github-merge-queue bot pushed a commit to Qiskit/documentation that referenced this pull request Jul 29, 2024
Copies Qiskit/qiskit-neko#48 to temporarily fix
CI.

---------

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants