[OE-core] [PATCH 1/2] easyinstall: class to create and extend the easyinstall.pth file

Burton, Ross ross.burton at intel.com
Tue Dec 18 14:55:07 UTC 2012


On 18 December 2012 13:58, Lukas Bulwahn <lukas.bulwahn at oss.bmw-carit.de> wrote:
> When installing python packages that are installed with python's easyinstall,
> the installation creates easyinstall.pth files. This file must exist in the
> root filesystem so that python 2.7 can locate and import the installed modules
> in the host system.

Is this the logic that where packages get installed as Eggs, so into
e.g. /usr/lib/python2.7/site-packages/Foo-1.0/ instead of
../packages/foo)?  In that case we're basically having to deal with a
lot of complication.   I've been battling this a bit with python-mako
and this section of the setuptools document applies to us:

"However, packaging tools that build binary distributions by running
setup.py install on the command line or as a subprocess will require
modification to work with setuptools. They should use the
--single-version-externally-managed option to the install command,
combined with the standard --root or --record options. See the install
command documentation below for more details."

http://peak.telecommunity.com/DevCenter/setuptools#what-your-users-should-know
http://peak.telecommunity.com/DevCenter/setuptools#install-command

I'm all in favour of a setuptools class, but I think it should follow
what the documentation says and use --s-v-e-m.   My recent python-mako
patch to oe-devel uses these options to do a "old-school" install
which doesn't mean dealing with .pth files, as we're a perfectly good
package management system already.

Ross




More information about the Openembedded-core mailing list