[OE-core] [PATCH 0/2] recipetool: add python buildsystem support
Christopher Larson
kergoth at gmail.com
Thu Jan 8 18:24:08 UTC 2015
- Handles distutils & setuptools.
- Supports pulling metadata from PKG-INFO, .egg-info, & setup.py (via two
different mechanisms).
- Doesn't handle python 3 yet.
- Optional dependencies via `extra_requires` are not currently
handled.
- Implements scanning for dependencies by using the python ast to
determine what modules/packages are being imported by the python
code in question
See https://gist.github.com/kergoth/6cca6caa4e9b22a21f75 for the projects
I used to test this against, and
https://gist.github.com/kergoth/7fea9494e3cf60b382ff which is the result of
running recipetool create against every recipe that inherits distutils or
setuptools in my build environment.
https://gist.github.com/kergoth/7ad4b5102b2a5fe3a956 has my current TODO for
this feature.
Christopher Larson (2):
recipetool: add python buildsystem support
recipetool: add python dependency scanning support
scripts/lib/recipetool/create_buildsys_python.py | 567 +++++++++++++++++++++++
scripts/pythondeps | 250 ++++++++++
2 files changed, 817 insertions(+)
create mode 100644 scripts/lib/recipetool/create_buildsys_python.py
create mode 100755 scripts/pythondeps
--
1.8.3.4
More information about the Openembedded-core
mailing list