[Distutils] Packages that have problems being installed from wheels
Nick Coghlan
ncoghlan at gmail.com
Tue Sep 2 01:59:47 CEST 2014
On 2 Sep 2014 03:19, "Marcus Smith" <qwcode at gmail.com> wrote:
>
>
>>
>> My view is that Python packaging should not support installation of
>> files to anywhere other than subdirectories of the scheme [...]
>>
>> For packages that need to install to absolute locations, I would
>>
>> suggest that this be handled by a post-install scriptlocations
>>
>> [...] Comments?
>
>
> I'd prefer, and think it's reasonable for a new wheel spec support
absolute paths (minimally, so we don't break existing distributions)
> Nick posted this a while back:
https://bitbucket.org/pypa/pypi-metadata-formats/issue/13/add-a-new-subdirectory-to-allow-wheels-to
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)
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).
The PyPA toolset would then take care of ensuring the new scheme directory
was also supported on earlier Python versions.
Cheers,
Nick.
>
>
>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20140902/8b94d8b9/attachment.html>
More information about the Distutils-SIG
mailing list