New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin setuptools version to fix installation with pip #1951
Conversation
@phschiele @SteveDiamond I would appreciate a review and let me know if there is anything I can do to have this patch released to pypi |
@piiq can you clarify more what happened? I saw your link, but is this bug in setuptools going to be fixed soon, or is this a permanent problem due to deprecation? |
Benchmarks that have stayed the same:
|
Thanks for the reply @SteveDiamond If i understand correctly it's a permanent problem due to deprecation on the setuptools side that the numpy maintainers are not planning to adjust to. From this comment in a numpy issue thread I understood that numpy does not and will not support setuptools>60, but all versions up to the 65.5.0 were ok. For cvxpy the problem is that it breaks the build process of SCS when installing with pip on a platform for which wheels with pre-built SCS binaries are not provided. I've explicitly pinned the versions in For a test that the patch works as expected on an Apple Silicon machine I run |
By the way, I accepted this PR that makes a similar fix to SCS a few days ago. |
Description
This PR pins the setuptools version to the latest version that's used in the project's CI.
Resolves #1950 that was introduced due to pypa/setuptools#3693
Type of change
Contribution checklist
[ ] Add our license to new files.[ ] Write unittests.Test procedure:
python setup.py develop && pip install .
cd cvxpy/tests && pytest
Test results:
852 passed, 289 skipped, 543 warnings in 41.25s
9 passed, 3 skipped, 1 warning in 6.43s