How can I customize builtin module search path to prefix/lib to prefix/lib64?

js ebgssth at
Thu Sep 25 23:02:45 CEST 2008

For 64bit python, there's no need to look at lib/lib-dynload because
libraries for 64bit should be in
lib64/lib-dynload. Having module search path which point to libraries
the python can not understand
is, IMHO, wrong.

On Fri, Sep 26, 2008 at 3:03 AM, Mike Driscoll <kyosohma at> wrote:
> On Sep 25, 10:41 am, js <ebgs... at> wrote:
>> Hi list,
>> Is it possible to change module search path (PYTHONPATH) built-in to
>> Python interpreter?
>> I thought I can change it with configure --libdir but it didn't work for me.
>> I also tried patching around python source tree replacing lib to lib64
>> but it didn't work either.
>> Adjusting sys.path directly or using environ should do the trick but
>> I'd rather want to make it the default path for my python
>> Thanks,
> Why not just add a custom path file (*.pth)? EasyInstall, wx, PyWin32
> and others do it. Of course there's always sys.path.append as well.
> Mike
> --

More information about the Python-list mailing list