Add back python2-setuptools

This adds back a python 2 version of setuptools but with all dependencies vendored
(the upstream default..). To allow users to install Python 2 packages we no longer
have in the repo etc which should help them transitioning.

This also adds conflicts between py2/3 setuptools because of the esy_install rename.

See #4993
This commit is contained in:
Christoph Reiter
2019-12-22 13:36:53 +01:00
parent 5794808b3b
commit aaa5fd8b39
9 changed files with 271 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
--- setuptools-5.4.1/setuptools/command/easy_install.py.orig 2014-02-11 21:11:57.898800000 +0400
+++ setuptools-5.4.1/setuptools/command/easy_install.py 2014-02-11 21:41:20.905000000 +0400
@@ -1256,8 +1256,8 @@
)
DEFAULT_SCHEME = dict(
- install_dir='$base/Lib/site-packages',
- script_dir='$base/Scripts',
+ install_dir='$base/lib/python$py_version_short/site-packages',
+ script_dir='$base/bin',
)
def _expand(self, *attrs):