Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Blog / Making easy_install play nicely with multi-arch

Making easy_install play nicely with multi-arch

by Ross Patterson last modified Oct 26, 2011 10:08 PM
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
Navigation
OpenID Login

Contact

me@rpatterson.net

IRC: zenwryly@irc.freenode.net
plone.org: rossp
GTalk: mer@patterson.net
Yahoo IM: patterson_ross
AIM: rosspatters
MSN: me@rpatterson.net
Skype: merpattersonnet

PO Box 7775 #10587
San Francisco, CA
94120-7775

Phone
+1 (415) 894-5323