Date
1 - 2 of 2
#bitbake #bitbake
elshoud <elshoud@...>
Hi,
I am new to the mailing list and hope that this is the right place to drop my question.
For my project I want to make use of the uvicorn package. Because I did not find any yocto recipe for the latest version I started making one but I am stumbling on the fact that there is no setup.py in the release. There is a setup.cfg and a pyproject.toml in the tar.gz.
Current version at https://pypi.org/project/uvicorn/ is 0.21.1.
With the following bb file:
When building, I get an error because there is no setup.py:
What is the best way forward to get the package baked? Is it possible to create the setup.py from the pyproject.toml? Many thanks in advance, Edwin Elshoud |
|
On Tue, Mar 21, 2023 at 8:51 AM elshoud <elshoud@...> wrote:
Since uvicorn has a proper pyproject.toml, you will want to use the new "PEP-517" classes available since 'kirkstone' Yocto Project release. You want to look at the pyproject.toml "build-backend" line: build-backend = "hatchling.build" This tells you which of the "PEP-517" classes to use.
Since the build-backend is "hatching.build" , you want to replace "setuptools3" with "python_hatchling" This class was introduced in the 'langdale' Yocto Project release.
|
|