
In numpy.distutils.system info: default_x11_lib_dirs = libpaths(['/usr/X11R6/lib','/usr/X11/lib', '/usr/lib'], platform_bits) default_x11_include_dirs = ['/usr/X11R6/include','/usr/X11/include', '/usr/include'] These defaults won't work on the forthcoming Ubuntu 11.10, which installs X into /usr/lib/X11 and /usr/include/X11. Darren

In numpy.distutils.system info:
default_x11_lib_dirs = libpaths(['/usr/X11R6/lib','/usr/X11/lib', '/usr/lib'], platform_bits) default_x11_include_dirs = ['/usr/X11R6/include','/usr/X11/include', '/usr/include']
These defaults won't work on the forthcoming Ubuntu 11.10, which installs X into /usr/lib/X11 and /usr/include/X11.
Do you have a link to where this is described? And what about the 64-bit
On Sun, Jul 17, 2011 at 11:48 PM, Darren Dale <dsdale24@gmail.com> wrote: lib path, will that be /usr/lib64/X11? Ralf

Tue, 19 Jul 2011 21:55:28 +0200, Ralf Gommers wrote:
On Sun, Jul 17, 2011 at 11:48 PM, Darren Dale <dsdale24@gmail.com> wrote:
In numpy.distutils.system info:
default_x11_lib_dirs = libpaths(['/usr/X11R6/lib','/usr/X11/lib', '/usr/lib'], platform_bits) default_x11_include_dirs = ['/usr/X11R6/include','/usr/X11/include', '/usr/include']
These defaults won't work on the forthcoming Ubuntu 11.10, which installs X into /usr/lib/X11 and /usr/include/X11.
Did you check that some compilation fails because of this? If not, how did you find the information that the location is changed? On Ubuntu 10.04, the libs are in /usr/lib/i386-linux-gnu/ The same seems to be true for the current Ubuntu 10.10 packages: http://packages.ubuntu.com/oneiric/i386/libxrender1/filelist Do you have a link where the change of location is explained?
Do you have a link to where this is described? And what about the 64-bit lib path, will that be /usr/lib64/X11?
These paths can be found runtime via pkg-config, pkg-config --cflags-only-I xproto pkg-config --libs-only-L xproto However, the convention typically is "#include <X11/Xlib.h>" so having only "/usr/include" in the path should be OK. But maybe just hardcoding more paths would be enough. There's a lot of stuff in `system_info`... Pauli

On Wed, Jul 20, 2011 at 03:58, Pauli Virtanen <pav@iki.fi> wrote:
Tue, 19 Jul 2011 21:55:28 +0200, Ralf Gommers wrote:
On Sun, Jul 17, 2011 at 11:48 PM, Darren Dale <dsdale24@gmail.com> wrote:
In numpy.distutils.system info:
default_x11_lib_dirs = libpaths(['/usr/X11R6/lib','/usr/X11/lib', '/usr/lib'], platform_bits) default_x11_include_dirs = ['/usr/X11R6/include','/usr/X11/include', '/usr/include']
These defaults won't work on the forthcoming Ubuntu 11.10, which installs X into /usr/lib/X11 and /usr/include/X11.
Did you check that some compilation fails because of this?
Enthought's Enable will probably fail. It uses the system_info infrastructure to find the X11 headers and libraries. It has perennially been fragile to build because of the unexpected variation in locations. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco

On Wed, Jul 20, 2011 at 4:58 AM, Pauli Virtanen <pav@iki.fi> wrote:
Tue, 19 Jul 2011 21:55:28 +0200, Ralf Gommers wrote:
On Sun, Jul 17, 2011 at 11:48 PM, Darren Dale <dsdale24@gmail.com> wrote:
In numpy.distutils.system info:
default_x11_lib_dirs = libpaths(['/usr/X11R6/lib','/usr/X11/lib', '/usr/lib'], platform_bits) default_x11_include_dirs = ['/usr/X11R6/include','/usr/X11/include', '/usr/include']
These defaults won't work on the forthcoming Ubuntu 11.10, which installs X into /usr/lib/X11 and /usr/include/X11.
Did you check that some compilation fails because of this? If not, how did you find the information that the location is changed?
I discovered the problem when I tried to build the entire Enthought Tool Suite from source on a Kubuntu-11.10 pre-release system. Even after changing the paths to point at the right location, there are other problems, as seen from this traceback for building Enable: /usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:525: UserWarning: Specified path /usr/local/include/python2.7 is invalid. warnings.warn('Specified path %s is invalid.' % d) /usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:525: UserWarning: Specified path /usr/include/suitesparse/python2.7 is invalid. warnings.warn('Specified path %s is invalid.' % d) /usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:525: UserWarning: Specified path is invalid. warnings.warn('Specified path %s is invalid.' % d) /usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:525: UserWarning: Specified path /usr/lib/X1164 is invalid. warnings.warn('Specified path %s is invalid.' % d) Traceback (most recent call last): File "setup.py", line 56, in <module> config = configuration().todict() File "setup.py", line 48, in configuration config.add_subpackage('kiva') File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 972, in add_subpackage caller_level = 2) File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 941, in get_subpackage caller_level = caller_level + 1) File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 878, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "kiva/setup.py", line 27, in configuration config.add_subpackage('agg') File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 972, in add_subpackage caller_level = 2) File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 941, in get_subpackage caller_level = caller_level + 1) File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 878, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "kiva/agg/setup.py", line 235, in configuration x11_info = get_info('x11', notfound_action=2) File "/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py", line 308, in get_info return cl().get_info(notfound_action) File "/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py", line 459, in get_info raise self.notfounderror(self.notfounderror.__doc__) numpy.distutils.system_info.X11NotFoundError: X11 libraries not found.
participants (4)
-
Darren Dale
-
Pauli Virtanen
-
Ralf Gommers
-
Robert Kern