Re: Installing python modules from source in Slackware 12 "Henrik Carlqvist" typed:
> When installing ocfs2-tools on Slackware 12 I have also tried to get
> ocfs2console working. This program requires some python modules, among
> them pygtk. It seems as if the installation of ocfs2console also
> installs some python modules.
>
> To me it seems as if python modules, when compiled from source, like
> most other software, by default prefers to install itself
> below /usr/local.
>
> However, when trying to use a python script that calls those modules
> they are not found. Debugging with strace shows that python only
> looks in /usr/lib/python*/site-packages,
> not /usr/local/lib/python*/site-packages.
>
> I am not very familiar with Python myself. I don't know how to write
> python programs and I don't know what to expect from a default python
> installation. The only thing that I can say is that something seems
> to be broken here.
>
> Is the Slackware 12 python installation broken as it doesn't look in
> /usr/local for modules?
I do a lot of Python development on Slackware systems. About the only
way I install (and have ever installed) Python modules is by running
`python setup.py install` from within the source directory of the Python
modules. This installs the relevant files for the modules
into /usr/lib/python<version>/site-packages/. I've never compiled
Python modules from source any other way.
--
Ayaz Ahmed Khan |