10 Commits

Author SHA1 Message Date
Tim Orling
5c7d63a437 pyo3.bbclass: add class for PyO3 cross-compilation
PyO3 provides Rust bindings for Python, including tools for creating native
Python extension modules. Running and interacting with Python code from a
Rust binary is also supported.

This class sets up the cross-compilation environment.

Export PYO3_CROSS, PYO3_CROSS_LIB_DIR, PYO3_CROSS_INCLUDE_DIR and CARGO_BUILD_TARGET
to inform tools like setuptools-rust we are cross-compiling.

Export RUSTFLAGS so cargo can find 'std' and 'core' for target

Dynamically generate PyO3 config file and export PYO3_CONFIG_FILE
absolute path. This is the trick that finally made pyo3 work.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2022-01-18 12:53:38 -08:00
Ross Burton
23acce81f4 bandit: add class to perform Bandit scans
Add a class to perform security scans of Python code using Bandit.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-27 11:05:22 -08:00
Derek Straka
73dfaca93b pypi: remove class that was added to oe-core
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-01-16 21:33:04 -08:00
Derek Straka
3d383cce9a pypi: add default values for UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-12-13 11:19:34 +01:00
Joshua Lock
efd3696e70 remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.

Search made with the following regex: getVar ?\(( ?[^,()]*), True\)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
2016-12-02 09:16:17 +01:00
Derek Straka
7edad4def4 pypi: update the base pypi url to use the package info without requiring the hash
* Things have finally settled on a URL structure without needing the hash
     (See https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package)

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-07-11 15:16:04 +02:00
Derek Straka
e62215ef4e pypi: update the pypi class to support the updated URL scheme
pypi has changed the url scheme to use the blake2b rather than names

http://permalink.gmane.org/gmane.linux.distributions.nixos/20158

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-10 20:18:57 +02:00
Derek Straka
1fadd754cc Update pypi classes to avoid setuptools inherit to be more flexible
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25 17:45:47 +01:00
Sven Ebenfeld
1ec43c1e4f add pypi3 bbclass to make python3 recipe creation easier as well
Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
2016-02-01 15:51:15 +01:00
Andreas Oberritter
0f568c5441 pypi.bbclass: new class to ease writing pypi recipes
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-04-13 12:55:48 +02:00