Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1955 from pypa/drop-py2
Require Python 3.5 or later, dropping support for Python 2.
- Loading branch information
Showing
6 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Drop support for Python 2. Setuptools now requires Python 3.5 or later. Install setuptools using pip >=9 or pin to Setuptools <45 to maintain 2.7 support. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import sys | ||
import warnings | ||
import textwrap | ||
|
||
|
||
msg = textwrap.dedent(""" | ||
You are running Setuptools on Python 2, which is no longer | ||
supported and | ||
>>> SETUPTOOLS WILL STOP WORKING <<< | ||
in a subsequent release. Please ensure you are installing | ||
Setuptools using pip 9.x or later or pin to `setuptools<45` | ||
in your environment. | ||
If you have done those things and are still encountering | ||
this message, please comment in | ||
https://github.com/pypa/setuptools/issues/1458 | ||
about the steps that led to this unsupported combination. | ||
""") | ||
|
||
sys.version_info < (3,) and warnings.warn("*" * 60 + msg + "*" * 60) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters