.. Ross Patterson's Blog imported post, created by `$ ./bin/rfc822-to-post` on Mar 15, 2021. .. meta:: :description: How to help extensions built with easy_install find Debian/Ubuntu multi-arch libraries. :keywords: Plone, Zope .. post:: Oct 26, 2011 :tags: Plone, Zope :author: Ross Patterson :redirect: @@redirect-to-uuid/72c01bca-447a-496e-a401-c1b6c2a9ce2b ############################################### 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 .. update:: Oct 26, 2011 Imported from Plone on Mar 15, 2021. The date for this update is the last modified date in Plone.