[patch] configure script can't find Python3 on Ubuntu 13.04

72 views
Skip to first unread message

Ken Takata

unread,
Apr 12, 2013, 8:04:35 PM4/12/13
to vim...@googlegroups.com
Hi,

I hear that the config directory of Python3 will be changed on
Ubuntu 13.04 because of multiarch support. E.g. it becomes
/usr/lib/python3.3/config-3.3m-i386-linux-gnu/ on Ubuntu 13.04 32bit.
Currently the configure script can't find this directory.
The config directory of Python2/3 can be retrieved by the following code:

import distutils.sysconfig
print(distutils.sysconfig.get_config_var('LIBPL'))

Attached patch uses distutils.sysconfig first, then the old routine
to retrieve the config directory.
Tested on Ubuntu 13.04 32bit (beta), 12.04 64bit, 10.04 64bit and Cygwin.

I also attached a patch to fix some indents in the configure.in.

Best regards,
Ken Takata

python-config-dir.patch
fix-indent-in-configure.in.patch

Bram Moolenaar

unread,
Apr 13, 2013, 5:18:24 AM4/13/13
to Ken Takata, vim...@googlegroups.com
Thanks. I'll check it out.

--
Send $25.00 for handy leaflet on how to make money by selling leaflets

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages