On Sun, Nov 07, 2010 at 06:04:35PM +0200, Roland Puntaier wrote: > Hi Bram, > > After installing vim7.3 on a ubuntu system, I had again the problem > that import did not work for .so libraries in lib-dynload. I found > that sys.path was initialized with "/usr/..." instead of > "/usr/local/...". On ubuntu (and probably on other linux distros as > well) python3 is installed in /usr/local while python2 is installed > in /usr.
That's not the case at all[0]. No distribution package should install to /usr/local as that's a reserved directory structure for the system administrator[1]. If your Python3 install is in /usr/local, then whoever admins that system installed it there. > The attached patch calls Py_SetPythonHome with PYTHON3_PREFIX > defined by configure. > This solves the problem. This does make sense for supporting people who have installed Python outside of the standard paths, though. This should probably be done for Python2.x as well. [0]: http://packages.ubuntu.com/maverick/i386/python3.1/filelist [1]: http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
signature.asc
Description: Digital signature
