Re: Where are python module installed?
On Sep 20, 11:34 pm, Peng Yu wrote: > > The newly compiled python does pick up the newly installed module. How > does it do so? Is the module path hard coded in the python executable > when the executable is compiled? > Hi Peng, Yes, the Python that you configured and built knows all about where *its* modules are kept. So, later, if you run `python setup.py install` when installing a module you've downloaded from the PyPI, the `site-packages` directory that gets used is the one belonging to the `python` that comes first in your `$PATH`. :) There's a lot of good info in the top-level Python README file distributed with the source. After you run `./configure --prefix=/foo/bar/baz`, have a look inside the generated Makefile (look for `${prefix}`). You might also take a peek into the config.log file that gets created. ---John -- http://mail.python.org/mailman/listinfo/python-list
Re: Where are python module installed?
Maybe you should try reading the source? -- http://mail.python.org/mailman/listinfo/python-list
Re: Where are python module installed?
On Sun, Sep 20, 2009 at 10:25 PM, Diez B. Roggisch wrote: > Peng Yu schrieb: >> >> On Sun, Sep 20, 2009 at 8:37 PM, Daniel Fetchinson >> wrote: I configured python-2.6.2 with my own --prefix, then 'make' and 'make install'. I only find the following dirs and I don't find any python modules in the directory. Do python modules come with python-2.6.2? $ ls bin include lib share >>> >>> Try 'ls lib/python*' and also 'ls lib/python*/site-packages/' >> >> Do I need to set PYTHONPATH to lib/python* because I changed the >> default 'prefix'? > > It would have taken shorter to *try* that than it would to write this mail. > So go, try it. Hint: > > import foo foo.__file__ The newly compiled python does pick up the newly installed module. How does it do so? Is the module path hard coded in the python executable when the executable is compiled? Regards, Peng -- http://mail.python.org/mailman/listinfo/python-list
Re: Where are python module installed?
Peng Yu schrieb: On Sun, Sep 20, 2009 at 8:37 PM, Daniel Fetchinson wrote: I configured python-2.6.2 with my own --prefix, then 'make' and 'make install'. I only find the following dirs and I don't find any python modules in the directory. Do python modules come with python-2.6.2? $ ls bin include lib share Try 'ls lib/python*' and also 'ls lib/python*/site-packages/' Do I need to set PYTHONPATH to lib/python* because I changed the default 'prefix'? It would have taken shorter to *try* that than it would to write this mail. So go, try it. Hint: >>> import foo >>> foo.__file__ Diez -- http://mail.python.org/mailman/listinfo/python-list
Re: Where are python module installed?
On Sun, Sep 20, 2009 at 8:37 PM, Daniel Fetchinson wrote: >> I configured python-2.6.2 with my own --prefix, then 'make' and 'make >> install'. I only find the following dirs and I don't find any python >> modules in the directory. Do python modules come with python-2.6.2? >> >> $ ls >> bin include lib share > > Try 'ls lib/python*' and also 'ls lib/python*/site-packages/' Do I need to set PYTHONPATH to lib/python* because I changed the default 'prefix'? Regards, Peng -- http://mail.python.org/mailman/listinfo/python-list
Re: Where are python module installed?
> I configured python-2.6.2 with my own --prefix, then 'make' and 'make > install'. I only find the following dirs and I don't find any python > modules in the directory. Do python modules come with python-2.6.2? > > $ ls > bin include lib share Try 'ls lib/python*' and also 'ls lib/python*/site-packages/' HTH, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.python.org/mailman/listinfo/python-list
Re: Where are python module installed?
On Sun, Sep 20, 2009 at 20:30 -0500, Peng Yu wrote: > I configured python-2.6.2 with my own --prefix, then 'make' and 'make > install'. I only find the following dirs and I don't find any python > modules in the directory. Do python modules come with python-2.6.2? Yes. > $ ls > bin include lib share ^^^ here with kind regards Wolodja Wentland signature.asc Description: Digital signature -- http://mail.python.org/mailman/listinfo/python-list
Re: Where are python module installed?
On Sun, Sep 20, 2009 at 6:30 PM, Peng Yu wrote: > Hi, > > I configured python-2.6.2 with my own --prefix, then 'make' and 'make > install'. I only find the following dirs and I don't find any python > modules in the directory. Do python modules come with python-2.6.2? > > $ ls > bin include lib share $ ls -R lib Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list
Where are python module installed?
Hi, I configured python-2.6.2 with my own --prefix, then 'make' and 'make install'. I only find the following dirs and I don't find any python modules in the directory. Do python modules come with python-2.6.2? $ ls bin include lib share Regards, Peng -- http://mail.python.org/mailman/listinfo/python-list