<p dir="ltr"><br>
On 2 Sep 2014 03:19, "Marcus Smith" <<a href="mailto:qwcode@gmail.com">qwcode@gmail.com</a>> wrote:<br>
><br>
>  <br>
>><br>
>> My view is that Python packaging should not support installation of<br>
>> files to anywhere other than subdirectories of the scheme [...] <br>
>><br>
>> For packages that need to install to absolute locations, I would<br>
>><br>
>> suggest that this be handled by a post-install scriptlocations <br>
>><br>
>> [...] Comments?  <br>
><br>
><br>
> I'd prefer, and think it's reasonable for a new wheel spec support absolute paths (minimally, so we don't break existing distributions)<br>
> Nick posted this a while back: <a href="https://bitbucket.org/pypa/pypi-metadata-formats/issue/13/add-a-new-subdirectory-to-allow-wheels-to">https://bitbucket.org/pypa/pypi-metadata-formats/issue/13/add-a-new-subdirectory-to-allow-wheels-to</a></p>

<p dir="ltr">Yep, while we may eventually end up having to relent on allowing arbitrary code execution when installing from a wheel file, I'd like to see how far we can get without it (installers are often run with elevated privileges, so arbitrary code execution = teh horribleness)</p>

<p dir="ltr">For the "install to arbitrary locations" case, that should just be a matter of defining a new scheme directory that means "paths here are relative to the root of the installation target". There's no defined process for how we go about doing that, but one plausible option would be to write up a PEP for Python 3.5 that defines the new scheme directory in sysconfig (off the top of my head, I suggest "root"), where files placed there will end up on Windows, POSIX and in virtual environments, and how it impacts other things (like the fact wheels using it will be platform dependent).</p>

<p dir="ltr">The PyPA toolset would then take care of ensuring the new scheme directory was also supported on earlier Python versions.</p>
<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
><br>
><br>
> _______________________________________________<br>
> Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/distutils-sig">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
></p>