[OE-core] [PATCH 1/2] easyinstall: class to create and extend the easyinstall.pth file
Lukas Bulwahn
lukas.bulwahn at oss.bmw-carit.de
Wed Jan 9 08:21:17 UTC 2013
On 12/20/2012 12:34 PM, Burton, Ross wrote:
> Not sure how I failed to notice this, but there's a setuptools.bbclass
> in oe-core:
>
> inherit distutils
>
> DEPENDS += "python-setuptools-native"
>
> DISTUTILS_INSTALL_ARGS = "--root=${D} \
> --single-version-externally-managed \
> --prefix=${prefix} \
> --install-lib=${PYTHON_SITEPACKAGES_DIR} \
> --install-data=${datadir}"
>
> Yeah, that. I'll fix python-mako and this should be suitable for you too.
>
> Ross
Hi Ross,
the setuptools class does great work. Writing recipes and installing
python packages now works like a charm.
As you probably noticed as well, to add a package, one must add recipes
for the transitive closure of all required packages defined in the
setup.py file with the lines install_requires=[.*] and setup_requires=[.*].
The previous patches are now completely obsolete.
Lukas
More information about the Openembedded-core
mailing list