pipoe | Generate python bitbake recipes
kandi X-RAY | pipoe Summary
kandi X-RAY | pipoe Summary
The objective of this project is to make creating OpenEmbedded python recipes just a bit easier. pipoe will take either a single package name or a requirements file and recursively generate bitbake recipes for every pypi package listed. It is not guaranteed that it will work for every package. Additionally, many recipes will still require additional modification after generation (patches, overrides, appends, etc.). In those cases it is recommended that the user add these modifications in a bbappend file.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get package information
- Get package file info
- Fetch the requirements from a remote package
- Gather build dependencies
- Determine the version of a version
- Return a list of dependencies
- Translate a license name
- Unpack a package
- Determine the extra part of a query
- Get file extension
- Compute md5sum of a file
- Calculate the sha256 hash of a file
- Parse a requirements_dist string
- Parse requirements file
- Recursively generates Pip files
- Generate a recipe for a given package
- Write preferred versions
pipoe Key Features
pipoe Examples and Code Snippets
> pipoe --help
usage: pipoe [-h] [--package PACKAGE] [--version VERSION]
[--requirements REQUIREMENTS] [--extras] [--outdir OUTDIR]
[--python {python,python3}] [--licenses]
[--default-license DEFAULT_LICENSE]
Community Discussions
Trending Discussions on pipoe
QUESTION
I've found nice project https://github.com/NFJones/pipoe Also made with it few recipes to download Python3 modules from PyPi and try to include them in my custom image. Put all the recipes in ../sources/meta-custom/recpies-devtools/python Single recipe looks like python3-gpsd-py3_0.3.0.bb
...ANSWER
Answered 2021-Aug-16 at 10:25Found it after dig - your own recipes should be put in ../sources/meta-openembedded/meta-python/recipes-devtools/python
QUESTION
I try to include python modul pydantic from pypi.org with next recipe (generated auto by https://github.com/NFJones/pipoe ) in Yocto 2.6 Thud
...ANSWER
Answered 2021-Sep-03 at 10:34The python3
recipe in Yocto 2.6 Thud, is version Python 3.5.6.
However, pydantic
PyPI package uses Python f-strings
in its setup.py, which is syntax introduced in Python 3.6. Therefore, the recipe fails to build because Yocto's Python 3.5 does not recognise that syntax, hence the SyntaxError
from the Python interpreter trying to run setup.py
.
The pydantic
install guide says:
pydantic has no required dependencies except python 3.6, 3.7, 3.8, or 3.9, typing-extensions, and the dataclasses backport package for python 3.6. If you've got python 3.6+ and pip installed, you're good to go.
To build this package within Yocto, you'll need a release that includes a newer version of Python 3 - which is typically updated in Yocto's minor point releases. See below:
Yocto Release Version ofpython3
recipe
thud (2.6)
3.5.6 (source), not supported by pydantic
warrior (2.7)
3.7.7 (source)
zeus (3.0)
3.7.8 (source)
dunfell (3.1)
3.8.11
gatesgarth (3.2)
3.8.5
hardknott (3.3)
3.9.5
QUESTION
I'm trying to build pyinstaller recipe, I used pipoe here , but I got this error while i Told it to inherit pypi setuptools. Can anyone help please? THank you .
ERROR: ParseError at /home/yasmine/yocto/poky/meta-pyinst/recipes-pyinstaller/pyinstaller/python-altgraph_0.17.bb:16: Could not inherit file classes/setuptools.bbclass
...ANSWER
Answered 2021-Aug-24 at 18:47First, it is good practice to use pipoe to create python recipes automatically.
Check my response here on how to use it.
I used it to create pyinstaller
recipe, it detected that pyinstaller
depends, in run time RDEPENDS
, on:
- python3-altgraph
- python3-pyinstaller-hooks-contrib
So, here are the recipes:
python3-pyinstaller_4.5.1.bb
QUESTION
My Python application uses Dropbox and I need to include this library in my Yocto image. I managed to generate a recipe for it with pipoe (pipoe -p dropbox
). Here it is:
ANSWER
Answered 2020-Jul-25 at 13:11Probably an issue with inconsistent Python version.
You inherit setuptools
which is for python2. The RDEPENDS
are for python2 dependencies. But you add python3-pytest-runner-native
in DEPENDS
.
I'd suggest finding out which python version to use for this software and use the same for all RDEPENDS
, inherited classes (setuptools3
for python3), and DEPENDS
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pipoe
You can use pipoe like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page