Skip to content
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

Avoid installing setuptools 45 on Python 2. #1997

Merged
merged 1 commit into from
Feb 15, 2020
Merged

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Feb 15, 2020

Because Requires-Python is disabled for Python 2 to allow this declared-incompatible version to install on Python 2, the build-requirements must exclude installing setuptools 45 during the build-system setup.

Because Python 2 tests are only needed for internal validation, and because the latest pip is already installed, the build-system can rely on backend-path = ["."].

Fixes #1996.

Because Requires-Python is disabled for Python 2 to allow this declared-incompatible version to install on Python 2, the build-requirements must exclude installing setuptools 45 during the build-system setup.

Because Python 2 tests are only needed for internal validation, and because the latest pip is already installed, the build-system can rely on `backend-path = ["."]`.

Fixes #1996.
@jaraco
Copy link
Member Author

jaraco commented Feb 15, 2020

I note this test also illustrates that the backend-path is working as intended and it should be possible to remove setuptools from the build-requires altogether once Setuptools can drop support for sdist installs from older pips.

@jaraco
Copy link
Member Author

jaraco commented Feb 15, 2020

I don't understand why the tests are failing (example). "no module named posixpath" is the error reported by 3 failing tests. These tests don't fail on my local macOS runs.

@jaraco
Copy link
Member Author

jaraco commented Feb 15, 2020

The 3 failures also exist on maint/44.x, indicating a regression in some aspect independent of this effort, so I've filed #1998 to track that separately.

@jaraco jaraco merged commit c0154f4 into master Feb 15, 2020
@jaraco jaraco deleted the bugfix/1996-py27-tests branch February 15, 2020 15:14
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.

Tests failing on master on Python 2.7
1 participant