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
22 lines
917 B
Diff
22 lines
917 B
Diff
--- setuptools-5.4.1/launcher.c.orig 2014-06-29 02:40:09.000000000 +0100
|
|
+++ setuptools-5.4.1/launcher.c 2014-10-19 13:37:21.272787900 +0100
|
|
@@ -154,14 +154,16 @@
|
|
}
|
|
}
|
|
|
|
- /* Use the script's parent directory, which should be the Python home
|
|
- (This should only be used for bdist_wininst-installed scripts, because
|
|
+ /* Use the script's directory (parent directory if not mingw-w64), which should be the
|
|
+ Python home (This should only be used for bdist_wininst-installed scripts, because
|
|
easy_install-ed scripts use the absolute path to python[w].exe
|
|
*/
|
|
_splitpath(script, drive, dir, fname, ext);
|
|
result = dir + strlen(dir) -1;
|
|
+#if !defined(__MINGW64_VERSION_MAJOR)
|
|
if (*result == '\\') result--;
|
|
while (*result != '\\' && result>=dir) *result-- = 0;
|
|
+#endif
|
|
_makepath(path, drive, dir, exename, NULL);
|
|
return loadable_exe(path);
|
|
}
|