Commit Graph

12 Commits

Author SHA1 Message Date
Alexandru Ardelean
3611d7d6ed python-build: add support for pyproject.toml files
A new PEP 517 (https://www.python.org/dev/peps/pep-0517/) has defined that
Python packages can be shipped without any `setup.py` file, and that a
`pyproject.toml` file is sufficient.

A `setup.py` shim layer is suggested as a method for running the build.

For these cases, we will add a support in the OpenWrt build-system to
provide the default `setup.py` shim layer in case this file does not exist,
but there is a `pyproject.toml` file.

We also seem to need to tweak the shim layer with the PKG_VERSION,
otherwise the detected version is 0.0.0.
We will need to see if this will be fixed later in setuptools{-scm}.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2023-03-01 18:54:35 +08:00
Jeffery To
fb007138c1 python3: Add Py3Build/InstallBuildDepends recipe
This adds a recipe, Py3Build/InstallBuildDepends, that installs the
requirements listed in HOST_PYTHON3_PACKAGE_BUILD_DEPENDS. This allows
other (non-Python) packages to install host Python packages by calling
this recipe, without having to know the internals of python3-package.mk.

This also updates apparmor to call this recipe.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-11-08 13:36:20 +08:00
Michal Vasilek
0d71ffe1a9 python3-package.mk: fix syntax error in FindStdlibDepends
When running FindStdlib and running DependsCheckHostPipVersionMatch at
the same time, both commands were joined together resulting in a syntax
error.

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2022-11-08 13:36:19 +08:00
Alexandru Ardelean
d5a5cb0023 python3-package.mk: add check for dependencies in host-pip-requirements
It often happens that we update a package to a new version (e.g. cffi) to a
newer version, but we forget to update the version for cffi in the
`lang/python/host-pip-requirements/cffi.txt` file.

This check adds a minimal check, so that when a build occurs for a Python
package, if there is a mention/listing of this package in
`lang/python/host-pip-requirements/` it will check that the versions match.

This way, when we update a package, we get a build failure and update the
host version as well.

This will omit packages (like Cython) that are not packaged for OpenWrt,
but are host-side dependencies only.
But until we find some mechanism to check for those, we will probably only
notice to update them when another build occurs (at the very least).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-11-08 13:36:19 +08:00
lean
dbf61a05fe lang: bump version 2021-06-14 19:43:42 +08:00
coolsnowwolf
c36ad692b4 packages: sync to new packages 2020-07-08 14:18:52 +08:00
lean
4b54c3c33a python3: bump version 2020-04-01 02:24:43 +08:00
lean
1968d04d9f python3: back to v3.7.5 2019-10-26 13:03:52 +08:00
LEAN-ESX
0cee48ba20 python: updte packages 2019-10-25 07:10:23 -07:00
coolsnowwolf
5fcf0b0d0b Revert "python: bump to latest version"
This reverts commit 8be6cbdcc2.
2019-04-27 15:15:40 +08:00
coolsnowwolf
8be6cbdcc2 python: bump to latest version 2019-04-27 15:06:42 +08:00
coolsnowwolf
d17588da1a first commit 2018-10-18 16:56:47 +08:00