--- setuptools-51.1.2/launcher.c.orig	2021-01-12 11:59:21.949463100 +0530
+++ setuptools-51.1.2/launcher.c	2021-01-12 12:05:36.267872900 +0530
@@ -315,7 +315,11 @@
 
     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! */
     }
 
