[Distutils] How to make easy_install handle platlibs?

Buck Golemon workitharder at gmail.com
Sun Apr 12 09:36:42 CEST 2009


On Fri, Apr 10, 2009 at 9:15 PM, P.J. Eby <pje at telecommunity.com> wrote:

> At 08:53 PM 4/10/2009 -0700, Buck wrote:
>
>> I see the kernel version and architecture, but this is insufficient;
>> RedHat 4 and RedHat 5 both use a 2.6 kernel, but the difference in
>> provided libraries are sufficient to make many (most?) "impure"
>> libraries stop working ( numpy, python-ldap, and hashlib for
>> examples).
>>
>> easy_install apparently knows when packages are platform-dependant,
>> and the necessary directory is sys.exec_prefix (or maybe better:
>> distutils.sysconfig.get_python_lib(plat_specific=1) ), so this seems
>> like an easy change. Would a patch be accepted?
>>
>
> It would be a pretty major patch, since the distutils logic that's used for
> determining the installation directory is applied long before easy_install
> even knows what it's installing (and therefore, whether it's platform
> dependent).
>
> It would probably be a lot easier to improve the platform string generation
> and comparison logic, as has been done for OS X.
>
> If the distutils logic is used, then why does numpy install to the platlib
folder using distutils, but into the nonplatlib folder using easy_install?

Your tone seems to suggest that such an effort might be accepted upstream.

--Buck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090412/5fcc2d30/attachment-0001.htm>


More information about the Distutils-SIG mailing list