File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ Start printing a warning for Python 2.7 to warn of impending Python 2.7 End-of-life and
2
+ prompt users to start migrating to Python 3.
Original file line number Diff line number Diff line change @@ -143,6 +143,14 @@ def main(self, args):
143
143
replacement = None ,
144
144
gone_in = '19.2' ,
145
145
)
146
+ elif sys .version_info [:2 ] == (2 , 7 ):
147
+ deprecated (
148
+ "Python 2.7 will reach the end of it's life on January 1st, 2020. "
149
+ "Please upgrade your Python as Python 2.7 won't be maintained after "
150
+ "that date. A future version of pip will drop support for Python 2.7." ,
151
+ replacement = None ,
152
+ gone_in = None ,
153
+ )
146
154
147
155
# TODO: Try to get these passing down from the command?
148
156
# without resorting to os.environ to hold these.
You can’t perform that action at this time.
0 commit comments