On Jul 9, 2010, at 11:39 AM, Steven G. Johnson wrote:
2) Another issue is that the files are written to
lib/python2.6/site-packages
However, on my ubuntu machine I only have
/usr/lib/python2.6/dist-packages
i.e. there is no site-packages, which results in an error when
installing with
./configure --enable-shared Python=python && make && install
I'm using the automake support for Python installation; this looks
like a bug in that, I'll look into it and submit a bug report if
needed.
(Python distutils had a similar problem on Ubuntu last year:
https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/362570)
I looked into this, and it looks like automake 1.11 (the version I am
using) was already fixed last year to handle the dist-packages
directory correctly (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524176)
.
In particular, it uses the directory supplied by the Python distutils,
which (with Python >= 2.6) apparently should be ..../dist-packages if
you are installing into /usr or /usr/local or ..../site-packages if
you are installing anywhere else. The point is, it installs where
ever Python tells it packages should be installed (via
distutils.sysconfig.get_python_lib).
Have you actually tried installing into /usr or /usr/local, or have
you only installed in to your $HOME directory and extrapolated from
there?
Steven
PS. Also, normally the install script creates any missing directories
automatically, so I'm especially confused by your report of an "error
when installing". Do you mean that the installation actually halts
with an error, or just that it installs somewhere you don't want it to?_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss