Making easy_install play nicely with multi-arch

How to help extensions built with easy_install find Debian/Ubuntu multi-arch libraries.

The poorly documented ~/.pydistutils.cfg allows setting defaults for command-line arguments to distutils setup.py commands such as python setup.py build_ext --library-dirs. Use this to get easy_install to build eggs with extension modules that need to find libaries on multi-arch systems like Ubuntu and Debian. Just add the following two lines to ~/.pydistutils.cfg:

[build_ext]
library_dirs = /usr/lib:/usr/lib/i386-linux-gnu:/usr/local/lib

Updated on 26 October 2011

Imported from Plone on Mar 15, 2021. The date for this update is the last modified date in Plone.

Comments

comments powered by Disqus