59583Re: [patch] Py_SetPythonHome for python3 to make import work
- Nov 7, 2010James Vega wrote:
> On Sun, Nov 07, 2010 at 06:04:35PM +0200, Roland Puntaier wrote:OK, maybe I didn't use apt-get. Nevertheless, as most original sources do,
>> 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. No distribution package should install
> to /usr/local as that's a reserved directory structure for the system
> administrator. If your Python3 install is in /usr/local, then whoever
> admins that system installed it there.
python 3.x defaults to /usr/local prefix. And anyway, for the problem,
it doesn't matter how it got there.
>> The attached patch calls Py_SetPythonHome with PYTHON3_PREFIXYeah, you are right. I will send a new patch soon.
>> defined by configure.
>> This solves the problem.
> This should probably be done for Python2.x as well.
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic