robseb / pip2bitbake Goto Github PK
View Code? Open in Web Editor NEWScript to create a Bitbake recipe for Python pip (PyPI) Packages to be embedded within the Yocto Project
License: MIT License
Script to create a Bitbake recipe for Python pip (PyPI) Packages to be embedded within the Yocto Project
License: MIT License
python3 makePipRecipes.py
##############################################################################
##############################################################################
Type in the Name of the Python pip (PyPI) Package to include to your Yocto Project Linux Distro
Note: Consider the exact writing! Case sensitive!
You can find Python pip packages here: https://pypi.org/
PiP-Package Name: glances
Choose the requiered Python Version:
Python 1-2: 1,2
Python 3 : 3
Python Version:3
Type in the used License name for the recipe (e.g.: MIT)
License name: AGPL
Chosen License name: "AGPL"
Starting the generation...
--> Download for testing the Python PiP package
Collecting glances
Using cached Glances-3.2.1.tar.gz (6.8 MB)
Saved ./makePipRec_workingFolder/Glances-3.2.1.tar.gz
Successfully downloaded glances
The Name of the downloaded file: "Glances-3.2.1.tar.gz"
--> Calculate md5 checksum of this file
md5sum = 1902c8649dfb4474ee8537bb297341ee
--> Calculate sha256sum checksum of this file
sha256sum = 8ab984c711bd08711927884249392792d2e77a2e37bc21f77613412c5f7873c6
--> Decode the current Version Code of this PiP Package
--> ERROR: Decoding downloaded file failed!
The file name must be in following syntax:
-.
nice script!
It wouuld be nice if this would also support .whl files.
E.g. as in https://pypi.org/project/bosdyn-client/#modal-close
I ran pip2bb over jetson-stats and it created this
cat /var/home/dingo/overc/meta-awnix/recipes-support/jetson-stats/pip-jetson-stats_3.0.1.bb
SUMMARY = "Recipie to embedded the Python PiP Package jetson-stats"
HOMEPAGE ="https://pypi.org/project/jetson-stats"
LICENSE = "AGPL"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8763b57f0092c337eb12c354870a324a"
inherit pypi setuptools3
PYPI_PACKAGE = "jetson-stats"
SRC_URI[md5sum] = "257b141a8ff9a58a7a54f7571edb44c1"
SRC_URI[sha256sum] = "a807e2c639ca2d9555f709f40e5c7e85b72fc5d9ff5108221ff02f7b4628d34d"
however the recipe failds to build with Require super user
cat /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/log.do_compile.3226595
DEBUG: Executing shell function do_compile
Require super user
ERROR: 'python3 setup.py build ' execution failed.
WARNING: /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595:172 exit 1 from 'exit 1'
WARNING: Backtrace (BB generated script):
#1: bbfatal_log, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595, line 172
#2: distutils3_do_compile, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595, line 162
#3: do_compile, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595, line 151
#4: main, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595, line 176
ERROR: Execution of '/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595' failed with exit code 1:
Require super user
WARNING: /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595:172 exit 1 from 'exit 1'
WARNING: Backtrace (BB generated script):
#1: bbfatal_log, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595, line 172
#2: distutils3_do_compile, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595, line 162
#3: do_compile, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595, line 151
#4: main, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/pip-jetson-stats/3.0.1-r0/temp/run.do_compile.3226595, line 176
Backtrace (metadata-relative locations):
#1: bbfatal_log, /var/home/dingo/overc/poky/meta/classes/logging.bbclass, line 72
#2: distutils3_do_compile, /var/home/dingo/overc/poky/meta/classes/distutils3.bbclass, line 26
#3: do_compile, autogenerated, line 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.