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,14 @@
--- setuptools-40.2.0/launcher.c.orig 2018-08-27 00:31:49.470981800 -0400
+++ setuptools-40.2.0/launcher.c 2018-08-27 00:35:03.568692800 -0400
@@ -369,7 +372,11 @@ int run(int argc, char **argv, int is_gu
if (is_gui) {
/* Use exec, we don't need to wait for the GUI to finish */
+#ifdef __MINGW32__
+ _execv(ptr, (const char * const *)(newargs));
+#else
execv(ptr, (const char * const *)(newargs));
+#endif
return fail("Could not exec %s", ptr); /* shouldn't get here! */
}