On Tue, Nov 14, 2017 at 12:56 AM, Paul Moore <[email protected]> wrote: > On 14 November 2017 at 03:08, Nathaniel Smith <[email protected]> wrote: >> On Nov 13, 2017 6:47 PM, "Nick Coghlan" <[email protected]> wrote: > >>> and a pip.bat with the equivalent contents on Windows? >>> (Bonus: maybe this would fix the problem with upgrading pip on >>> Windows?) >> >> Depending on how the batch file was written, I think the answer to >> that is "maybe": >> https://stackoverflow.com/questions/2888976/how-to-make-bat-file-delete-it-self-after-completion/20333152#20333152 >> >> >> Sigh. > > Batch files are not suitable for this task. The wrappers have to be > executables. See > http://paul-moores-notes.readthedocs.io/en/latest/wrappers.html for a > detailed analysis I did some time ago.
Ah, interesting. My reason for suggesting it in the first place because I was hoping to avoid paying the process spawn overhead twice, but it sounds like this specific trick is misguided all around :-). -n -- Nathaniel J. Smith -- https://vorpus.org _______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
