[Distutils] Help with easy_install

Martin Manns mmanns at gmx.net
Fri Dec 5 20:16:19 CET 2008


Phillip J. Eby <pje <at> telecommunity.com> writes:
> Ah, here's where your problem is.  Instead of using get_python_lib() 
> to find the default package directory, i.e.:
> 
>   LIBPREFIX = distutils.sysconfig.get_python_lib() + '/pyspread/'
>   ICONPREFIX = distutils.sysconfig.get_python_lib() + '/pyspread/'
> 
> Do this instead:
> 
>   import os.path
>   LIBPREFIX = ICONPREFIX = os.path.dirname(__file__)

This works great.

Thank you for all your help (also to Robert Kern).

Best Regards

Martin








More information about the Distutils-SIG mailing list