Files
MINGW-packages/mingw-w64-python2-setuptools/0005-execv-warning.patch
Christoph Reiter aaa5fd8b39 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
2019-12-22 14:55:47 +01:00

15 lines
524 B
Diff

--- 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! */
}