[Python-ideas] Looking for input to help with the pip situation

Nathaniel Smith njs at pobox.com
Tue Nov 14 05:02:24 EST 2017


On Tue, Nov 14, 2017 at 12:56 AM, Paul Moore <p.f.moore at gmail.com> wrote:
> On 14 November 2017 at 03:08, Nathaniel Smith <njs at pobox.com> wrote:
>> On Nov 13, 2017 6:47 PM, "Nick Coghlan" <ncoghlan at gmail.com> 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


More information about the Python-ideas mailing list