Build recipe with pypa/build
I am trying to create a recipe for adafruit-circuitpython-busdevice in version 5.2.3 [1] on kirkstone. This package does not have a setup.py but only a pyproject.toml and a small setup.cfg and can apparently not be build using python_setuptools_build_meta.
On my host system (Ubuntu 22.04) I can build the wheel with the python build package [2], so I tried to install that into my native environment with the following recipe (named python3-build-0.10.0.bb).
Quoted 6 lines
SUMMARY = "A simple, correct Python build frontend." HOMEPAGE = "https://github.com/pypa/build"
AUTHOR = "Filipe Laíns <[email protected]>"
LICENSE = "MIT"LIC_FILES_CHKSUM= "file://LICENSE;md5=310439af287b0fb4780b2ad6907c256c"
Quoted 7 lines
SRC_URI[sha256sum] = "
d5b71264afdb5951d6704482aac78de887c80691c52b88a9ad195983ca2c9269"
PYPI_PACKAGE= "build"inherit pypi
python_flit_coreBBCLASSEXTEND = "native nativesdk"
This works well, and I can now call "nativepython3 -m build" in a devshell of my actual recipe (python3-adafruit-circuitpython-busdevice_5.2.3.bb):
Quoted 9 lines
SUMMARY = "CircuitPython bus device classes to manage bus sharing." HOMEPAGE = "https://github.com/adafruit/Adafruit_CircuitPython_BusDevice" LICENSE = "MIT"
LIC_FILES_CHKSUM= "file://LICENSE;md5=6ec69d6e9e6c85adfb7799d7f8cf044e"SRC_URI[sha256sum] = "
faa572b613a0732de938ed008402dfb105d91adb5d0096bf2709f46669a94885"
PYPI_PACKAGE= "adafruit-circuitpython-busdevice"
Quoted 8 lines
inherit pypi
DEPENDS += "python3-setuptools-scm-native python3-build-native"
RDEPENDS:${PN} += " \ python3-adafruit-blinka \ python3-core \"
However, I have issues with creating the wheel. My attempted devshell commands executed in ${S} so far are:
nativepython3 -m build --outdir ../dist
This produces the following output:> * Creating venv isolated environment...
Quoted 16 lines
Traceback (most recent call last):
File "/home/ff/.local/lib/python3.10/site-packages/build/__main__.py", line 375, in mainbuilt = build_call(File "
/home/ff/.local/lib/python3.10/site-packages/build/__main__.py", line 235, inbuild_package_via_sdist
sdist =_build(isolation, builder, outdir, 'sdist', config_settings, skip_dependency_check)
File "/home/ff/.local/lib/python3.10/site-packages/build/__main__.py", line 145, in_build
return_build_in_isolated_env(builder, outdir, distribution, config_settings)
File "/home/ff/.local/lib/python3.10/site-packages/build/__main__.py", line 109, in_build_in_isolated_env
with_IsolatedEnvBuilder()as env:
File "/home/ff/.local/lib/python3.10/site-packages/build/env.py", line 107, in__enter__
executable,scripts_dir=_create_isolated_env_venv(self._path)
File "/home/ff/.local/lib/python3.10/site-packages/build/env.py", line 279, in_create_isolated_env_venv
pip_distribution=next(iter(metadata.distributions(name='pip', path=[purelib])))# type: ignore[no-untyped-call]
StopIteration
Quoted 1 line
ERROR
I am confused why I see local path here?
If I then disable isolation after this (without cleaning) it produces a wheel:
nativepython3 -m build --outdir ../dist --no-isolation> * Getting build dependencies for sdist...
Quoted 117 lines
running
egg_info
writing adafruit_circuitpython_busdevice.egg-info/PKG-INFO
writingdependency_linkstoadafruit_circuitpython_busdevice.egg-info/dependency_links.txt
writing requirements toadafruit_circuitpython_busdevice.egg-info/requires.txt
writing top-level names toadafruit_circuitpython_busdevice.egg-info/top_level.txt
reading manifest file 'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
* Building sdist...
running sdist
runningegg_info
writing adafruit_circuitpython_busdevice.egg-info/PKG-INFO
writingdependency_linkstoadafruit_circuitpython_busdevice.egg-info/dependency_links.txt
writing requirements toadafruit_circuitpython_busdevice.egg-info/requires.txt
writing top-level names toadafruit_circuitpython_busdevice.egg-info/top_level.txt
reading manifest file 'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
running check
creating adafruit-circuitpython-busdevice-5.2.3
creating adafruit-circuitpython-busdevice-5.2.3/.github
creating adafruit-circuitpython-busdevice-5.2.3/.github/PULL_REQUEST_TEMPLATE
creating adafruit-circuitpython-busdevice-5.2.3/.github/workflows
creating adafruit-circuitpython-busdevice-5.2.3/LICENSES
creating adafruit-circuitpython-busdevice-5.2.3/adafruit_bus_device
creating adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
creating adafruit-circuitpython-busdevice-5.2.3/docs
creating adafruit-circuitpython-busdevice-5.2.3/docs/_static
creating adafruit-circuitpython-busdevice-5.2.3/examples
copying files to adafruit-circuitpython-busdevice-5.2.3...
copying .gitignore -> adafruit-circuitpython-busdevice-5.2.3
copying.pre-commit-config.yaml-> adafruit-circuitpython-busdevice-5.2.3
copying .pylintrc -> adafruit-circuitpython-busdevice-5.2.3
copying.readthedocs.yaml-> adafruit-circuitpython-busdevice-5.2.3
copying CODE_OF_CONDUCT.md -> adafruit-circuitpython-busdevice-5.2.3
copying LICENSE -> adafruit-circuitpython-busdevice-5.2.3
copyingREADME.rst-> adafruit-circuitpython-busdevice-5.2.3
copying README.rst.license -> adafruit-circuitpython-busdevice-5.2.3
copying optional_requirements.txt -> adafruit-circuitpython-busdevice-5.2.3
copying pyproject.toml -> adafruit-circuitpython-busdevice-5.2.3
copying requirements.txt -> adafruit-circuitpython-busdevice-5.2.3
copying setup.cfg -> adafruit-circuitpython-busdevice-5.2.3
copying.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md-> adafruit-circuitpython-busdevice-5.2.3/.github/PULL_REQUEST_TEMPLATE
copying.github/workflows/build.yml-> adafruit-circuitpython-busdevice-5.2.3/.github/workflows
copying.github/workflows/failure-help-text.yml-> adafruit-circuitpython-busdevice-5.2.3/.github/workflows
copying.github/workflows/release.yml-> adafruit-circuitpython-busdevice-5.2.3/.github/workflows
copyingLICENSES/CC-BY-4.0.txt-> adafruit-circuitpython-busdevice-5.2.3/LICENSES
copyingLICENSES/MIT.txt-> adafruit-circuitpython-busdevice-5.2.3/LICENSES
copyingLICENSES/Unlicense.txt-> adafruit-circuitpython-busdevice-5.2.3/LICENSES
copyingadafruit_bus_device/__init__.py-> adafruit-circuitpython-busdevice-5.2.3/adafruit_bus_device
copyingadafruit_bus_device/i2c_device.py-> adafruit-circuitpython-busdevice-5.2.3/adafruit_bus_device
copyingadafruit_bus_device/spi_device.py-> adafruit-circuitpython-busdevice-5.2.3/adafruit_bus_device
copying adafruit_circuitpython_busdevice.egg-info/PKG-INFO -> adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingadafruit_circuitpython_busdevice.egg-info/SOURCES.txt-> adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingadafruit_circuitpython_busdevice.egg-info/dependency_links.txt-> adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingadafruit_circuitpython_busdevice.egg-info/requires.txt-> adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingadafruit_circuitpython_busdevice.egg-info/top_level.txt-> adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingdocs/api.rst-> adafruit-circuitpython-busdevice-5.2.3/docs
copying docs/api.rst.license -> adafruit-circuitpython-busdevice-5.2.3/docs
copyingdocs/conf.py-> adafruit-circuitpython-busdevice-5.2.3/docs
copyingdocs/examples.rst-> adafruit-circuitpython-busdevice-5.2.3/docs
copying docs/examples.rst.license -> adafruit-circuitpython-busdevice-5.2.3/docs
copyingdocs/index.rst-> adafruit-circuitpython-busdevice-5.2.3/docs
copying docs/index.rst.license -> adafruit-circuitpython-busdevice-5.2.3/docs
copyingdocs/requirements.txt-> adafruit-circuitpython-busdevice-5.2.3/docs
copying docs/_static/favicon.ico -> adafruit-circuitpython-busdevice-5.2.3/docs/_static
copying docs/_static/favicon.ico.license -> adafruit-circuitpython-busdevice-5.2.3/docs/_static
copyingexamples/busdevice_read_register_i2c_simpletest.py-> adafruit-circuitpython-busdevice-5.2.3/examples
copyingexamples/busdevice_read_register_spi_simpletest.py-> adafruit-circuitpython-busdevice-5.2.3/examples
Writing adafruit-circuitpython-busdevice-5.2.3/setup.cfg
Creating tar archive
removing 'adafruit-circuitpython-busdevice-5.2.3' (and everything under it)
* Building wheel from sdist
* Getting build dependencies for wheel...
runningegg_info
writing adafruit_circuitpython_busdevice.egg-info/PKG-INFO
writingdependency_linkstoadafruit_circuitpython_busdevice.egg-info/dependency_links.txt
writing requirements toadafruit_circuitpython_busdevice.egg-info/requires.txt
writing top-level names toadafruit_circuitpython_busdevice.egg-info/top_level.txt
reading manifest file 'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
* Building wheel...
runningbdist_wheel
running build
runningbuild_py
creating build
creating build/lib
creating build/lib/adafruit_bus_device
copyingadafruit_bus_device/i2c_device.py-> build/lib/adafruit_bus_device
copyingadafruit_bus_device/spi_device.py-> build/lib/adafruit_bus_device
copyingadafruit_bus_device/__init__.py-> build/lib/adafruit_bus_device
runningegg_info
writing adafruit_circuitpython_busdevice.egg-info/PKG-INFO
writingdependency_linkstoadafruit_circuitpython_busdevice.egg-info/dependency_links.txt
writing requirements toadafruit_circuitpython_busdevice.egg-info/requires.txt
writing top-level names toadafruit_circuitpython_busdevice.egg-info/top_level.txt
reading manifest file 'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
runninginstall_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/adafruit_bus_device
copyingbuild/lib/adafruit_bus_device/i2c_device.py-> build/bdist.linux-x86_64/wheel/adafruit_bus_device
copyingbuild/lib/adafruit_bus_device/spi_device.py-> build/bdist.linux-x86_64/wheel/adafruit_bus_device
copyingbuild/lib/adafruit_bus_device/__init__.py-> build/bdist.linux-x86_64/wheel/adafruit_bus_device
runninginstall_egg_info
Copying adafruit_circuitpython_busdevice.egg-info to build/bdist.linux-x86_64/wheel/adafruit_circuitpython_busdevice-5.2.3-py3.10.egg-info
runninginstall_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/adafruit_circuitpython_busdevice-5.2.3.dist-info/WHEEL
creating '/home/ff/yocto/builds/kirkstone/tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/dist/tmp0so8qe26/adafruit_circuitpython_busdevice-5.2.3-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'adafruit_bus_device/__init__.py'
adding 'adafruit_bus_device/i2c_device.py'
Quoted 8 lines
adding '
adafruit_bus_device/spi_device.py'
adding 'adafruit_circuitpython_busdevice-5.2.3.dist-info/LICENSE'
adding 'adafruit_circuitpython_busdevice-5.2.3.dist-info/METADATA'
adding 'adafruit_circuitpython_busdevice-5.2.3.dist-info/WHEEL'
adding 'adafruit_circuitpython_busdevice-5.2.3.dist-info/top_level.txt'
adding 'adafruit_circuitpython_busdevice-5.2.3.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built adafruit-circuitpython-busdevice-5.2.3.tar.gz and adafruit_circuitpython_busdevice-5.2.3-py3-none-any.whl
If I disable isolation with a clean recipe workdir instead, it builds an "empty" wheel:
Quoted 60 lines
* Getting build dependencies for sdist...
runningegg_info
creating UNKNOWN.egg-info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txt
writing top-level names toUNKNOWN.egg-info/top_level.txt
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
* Building sdist...
running sdist
runningegg_info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txt
writing top-level names toUNKNOWN.egg-info/top_level.txt
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
running check
creating UNKNOWN-0.0.0
creating UNKNOWN-0.0.0/UNKNOWN.egg-info
copying files to UNKNOWN-0.0.0...
copying LICENSE -> UNKNOWN-0.0.0
copyingREADME.rst-> UNKNOWN-0.0.0
copying pyproject.toml -> UNKNOWN-0.0.0
copying setup.cfg -> UNKNOWN-0.0.0
copying UNKNOWN.egg-info/PKG-INFO -> UNKNOWN-0.0.0/UNKNOWN.egg-info copyingUNKNOWN.egg-info/SOURCES.txt-> UNKNOWN-0.0.0/UNKNOWN.egg-info copyingUNKNOWN.egg-info/dependency_links.txt-> UNKNOWN-0.0.0/UNKNOWN.egg-info copyingUNKNOWN.egg-info/top_level.txt-> UNKNOWN-0.0.0/UNKNOWN.egg-info Writing UNKNOWN-0.0.0/setup.cfg
Creating tar archive
removing 'UNKNOWN-0.0.0' (and everything under it)
* Building wheel from sdist
* Getting build dependencies for wheel...
runningegg_info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txt
writing top-level names toUNKNOWN.egg-info/top_level.txt
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
* Building wheel...
runningbdist_wheel
running build
installing to build/bdist.linux-x86_64/wheel
running install
runninginstall_egg_info
runningegg_info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txt
writing top-level names toUNKNOWN.egg-info/top_level.txt
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
Copying UNKNOWN.egg-info to build/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0-py3.10.egg-info runninginstall_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0.dist-info/WHEEL
Quoted 8 lines
creating '
/home/ff/yocto/builds/kirkstone/tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/dist/tmpfoz232kv/UNKNOWN-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'UNKNOWN-0.0.0.dist-info/LICENSE'
adding 'UNKNOWN-0.0.0.dist-info/METADATA'
adding 'UNKNOWN-0.0.0.dist-info/WHEEL'
adding 'UNKNOWN-0.0.0.dist-info/top_level.txt'
adding 'UNKNOWN-0.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built UNKNOWN-0.0.0.tar.gz and UNKNOWN-0.0.0-py3-none-any.whl
So, the first failed call without parameter "--no-isolation" modifies the python installation in recipe-sysroot-native so that the second call with the parameter succeeds. I confirmed this with looking at touched files before and after executing the command. Mostly cache files were created and some files changed.
How can I put the python installation in recipe-sysroot-native into a state so that the build command succeeds right away? Or is my approach wrong in the first place?
Best regards, FF
[1] https://pypi.org/project/adafruit-circuitpython-busdevice/
[2] https://pypi.org/project/build/
You can try to 'inherit python_setuptools_build_meta' for your recipe
Quoted 364 lines · Florian Frank
I am trying to create a recipe for adafruit-circuitpython-busdevice in version 5.2.3 [1] on kirkstone. This package does not have a
setup.pybut only a pyproject.toml and a small setup.cfg and can apparently not be build usingpython_setuptools_build_meta.On my host system (Ubuntu 22.04) I can build the wheel with the python build package [2], so I tried to install that into my native environment with the following recipe (named python3-build-0.10.0.bb).
Quoted 8 lines
SUMMARY = "A simple, correct Python build frontend."
HOMEPAGE = "<https://github.com/pypa/build>"
AUTHOR = "Filipe Laíns <[email protected]
<mailto:[email protected]>>"
LICENSE = "MIT"
LIC_FILES_CHKSUM=
"file://LICENSE;md5=310439af287b0fb4780b2ad6907c256c" <file://license;md5=310439af287b0fb4780b2ad6907c256c/>Quoted 8 lines
SRC_URI[sha256sum] =
"d5b71264afdb5951d6704482aac78de887c80691c52b88a9ad195983ca2c9269"
PYPI_PACKAGE= "build"inherit pypi
python_flit_coreBBCLASSEXTEND = "native nativesdk"
This works well, and I can now call "nativepython3 -m build" in a devshell of my actual recipe (python3-adafruit-circuitpython-busdevice_5.2.3.bb):
Quoted 12 lines
SUMMARY = "CircuitPython bus device classes to manage bus sharing."
HOMEPAGE =
"<https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>"
LICENSE = "MIT"
LIC_FILES_CHKSUM=
"file://LICENSE;md5=6ec69d6e9e6c85adfb7799d7f8cf044e" <file://license;md5=6ec69d6e9e6c85adfb7799d7f8cf044e/>SRC_URI[sha256sum] =
"faa572b613a0732de938ed008402dfb105d91adb5d0096bf2709f46669a94885"
PYPI_PACKAGE= "adafruit-circuitpython-busdevice"Quoted 8 lines
inherit pypi
DEPENDS += "python3-setuptools-scm-native python3-build-native"
RDEPENDS:${PN} += " \ python3-adafruit-blinka \ python3-core \"
However, I have issues with creating the wheel. My attempted devshell commands executed in ${S} so far are:
nativepython3 -m build --outdir ../dist
This produces the following output:> * Creating venv isolated environment...
Quoted 25 lines
Traceback (most recent call last):
File
"/home/ff/.local/lib/python3.10/site-packages/build/__main__.py", line 375, in mainbuilt = build_call(File
"/home/ff/.local/lib/python3.10/site-packages/build/__main__.py", line 235, inbuild_package_via_sdist
sdist = _build(isolation, builder, outdir, 'sdist',config_settings,skip_dependency_check)
File
"/home/ff/.local/lib/python3.10/site-packages/build/__main__.py", line 145, in_build
return _build_in_isolated_env(builder, outdir, distribution,config_settings)
File
"/home/ff/.local/lib/python3.10/site-packages/build/__main__.py", line 109, in_build_in_isolated_env
with_IsolatedEnvBuilder()as env:File "/home/ff/.local/lib/python3.10/site-packages/build/env.py",line 107, in
__enter__
executable,scripts_dir=_create_isolated_env_venv(self._path)
File "/home/ff/.local/lib/python3.10/site-packages/build/env.py",
line 279, in_create_isolated_env_venv
pip_distribution= next(iter(metadata.distributions(name='pip',
path=[purelib]))) # type: ignore[no-untyped-call]
StopIterationQuoted 1 line
ERROR
I am confused why I see local path here?
If I then disable isolation after this (without cleaning) it produces a wheel:
nativepython3 -m build --outdir ../dist --no-isolation> * Getting build dependencies for sdist...
Quoted 179 lines
running
egg_info
writing adafruit_circuitpython_busdevice.egg-info/PKG-INFO
writingdependency_linkstoadafruit_circuitpython_busdevice.egg-info/dependency_links.txt
writing requirements toadafruit_circuitpython_busdevice.egg-info/requires.txt
writing top-level names toadafruit_circuitpython_busdevice.egg-info/top_level.txt
reading manifest file
'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file
'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
* Building sdist...
running sdist
runningegg_info
writing adafruit_circuitpython_busdevice.egg-info/PKG-INFO
writingdependency_linkstoadafruit_circuitpython_busdevice.egg-info/dependency_links.txt
writing requirements toadafruit_circuitpython_busdevice.egg-info/requires.txt
writing top-level names toadafruit_circuitpython_busdevice.egg-info/top_level.txt
reading manifest file
'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file
'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
running check
creating adafruit-circuitpython-busdevice-5.2.3
creating adafruit-circuitpython-busdevice-5.2.3/.github
creating
adafruit-circuitpython-busdevice-5.2.3/.github/PULL_REQUEST_TEMPLATE
creating adafruit-circuitpython-busdevice-5.2.3/.github/workflows
creating adafruit-circuitpython-busdevice-5.2.3/LICENSES
creating adafruit-circuitpython-busdevice-5.2.3/adafruit_bus_device
creating
adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
creating adafruit-circuitpython-busdevice-5.2.3/docs
creating adafruit-circuitpython-busdevice-5.2.3/docs/_static
creating adafruit-circuitpython-busdevice-5.2.3/examples
copying files to adafruit-circuitpython-busdevice-5.2.3...
copying .gitignore -> adafruit-circuitpython-busdevice-5.2.3
copying.pre-commit-config.yaml->
adafruit-circuitpython-busdevice-5.2.3
copying .pylintrc -> adafruit-circuitpython-busdevice-5.2.3
copying.readthedocs.yaml-> adafruit-circuitpython-busdevice-5.2.3
copying CODE_OF_CONDUCT.md -> adafruit-circuitpython-busdevice-5.2.3
copying LICENSE -> adafruit-circuitpython-busdevice-5.2.3
copyingREADME.rst-> adafruit-circuitpython-busdevice-5.2.3
copying README.rst.license -> adafruit-circuitpython-busdevice-5.2.3
copying optional_requirements.txt ->
adafruit-circuitpython-busdevice-5.2.3
copying pyproject.toml -> adafruit-circuitpython-busdevice-5.2.3
copying requirements.txt -> adafruit-circuitpython-busdevice-5.2.3
copying setup.cfg -> adafruit-circuitpython-busdevice-5.2.3
copying.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md
->
adafruit-circuitpython-busdevice-5.2.3/.github/PULL_REQUEST_TEMPLATE
copying.github/workflows/build.yml->
adafruit-circuitpython-busdevice-5.2.3/.github/workflows
copying.github/workflows/failure-help-text.yml->
adafruit-circuitpython-busdevice-5.2.3/.github/workflows
copying.github/workflows/release.yml->
adafruit-circuitpython-busdevice-5.2.3/.github/workflows
copyingLICENSES/CC-BY-4.0.txt->
adafruit-circuitpython-busdevice-5.2.3/LICENSES
copyingLICENSES/MIT.txt->
adafruit-circuitpython-busdevice-5.2.3/LICENSES
copyingLICENSES/Unlicense.txt->
adafruit-circuitpython-busdevice-5.2.3/LICENSES
copyingadafruit_bus_device/__init__.py->
adafruit-circuitpython-busdevice-5.2.3/adafruit_bus_device
copyingadafruit_bus_device/i2c_device.py->
adafruit-circuitpython-busdevice-5.2.3/adafruit_bus_device
copyingadafruit_bus_device/spi_device.py->
adafruit-circuitpython-busdevice-5.2.3/adafruit_bus_device
copying adafruit_circuitpython_busdevice.egg-info/PKG-INFO ->
adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingadafruit_circuitpython_busdevice.egg-info/SOURCES.txt->
adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingadafruit_circuitpython_busdevice.egg-info/dependency_links.txt-> adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingadafruit_circuitpython_busdevice.egg-info/requires.txt->
adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingadafruit_circuitpython_busdevice.egg-info/top_level.txt->
adafruit-circuitpython-busdevice-5.2.3/adafruit_circuitpython_busdevice.egg-info
copyingdocs/api.rst-> adafruit-circuitpython-busdevice-5.2.3/docs
copying docs/api.rst.license ->
adafruit-circuitpython-busdevice-5.2.3/docs
copyingdocs/conf.py-> adafruit-circuitpython-busdevice-5.2.3/docs
copyingdocs/examples.rst->
adafruit-circuitpython-busdevice-5.2.3/docs
copying docs/examples.rst.license ->
adafruit-circuitpython-busdevice-5.2.3/docs
copyingdocs/index.rst->
adafruit-circuitpython-busdevice-5.2.3/docs
copying docs/index.rst.license ->
adafruit-circuitpython-busdevice-5.2.3/docs
copyingdocs/requirements.txt->
adafruit-circuitpython-busdevice-5.2.3/docs
copying docs/_static/favicon.ico ->
adafruit-circuitpython-busdevice-5.2.3/docs/_static
copying docs/_static/favicon.ico.license ->
adafruit-circuitpython-busdevice-5.2.3/docs/_static
copyingexamples/busdevice_read_register_i2c_simpletest.py->
adafruit-circuitpython-busdevice-5.2.3/examples
copyingexamples/busdevice_read_register_spi_simpletest.py->
adafruit-circuitpython-busdevice-5.2.3/examples
Writing adafruit-circuitpython-busdevice-5.2.3/setup.cfg
Creating tar archive
removing 'adafruit-circuitpython-busdevice-5.2.3' (and everything
under it)
* Building wheel from sdist
* Getting build dependencies for wheel...
runningegg_info
writing adafruit_circuitpython_busdevice.egg-info/PKG-INFO
writingdependency_linkstoadafruit_circuitpython_busdevice.egg-info/dependency_links.txt
writing requirements toadafruit_circuitpython_busdevice.egg-info/requires.txt
writing top-level names toadafruit_circuitpython_busdevice.egg-info/top_level.txt
reading manifest file
'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file
'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
* Building wheel...
runningbdist_wheel
running build
runningbuild_py
creating build
creating build/lib
creating build/lib/adafruit_bus_device
copyingadafruit_bus_device/i2c_device.py->
build/lib/adafruit_bus_device
copyingadafruit_bus_device/spi_device.py->
build/lib/adafruit_bus_device
copyingadafruit_bus_device/__init__.py->
build/lib/adafruit_bus_device
runningegg_info
writing adafruit_circuitpython_busdevice.egg-info/PKG-INFO
writingdependency_linkstoadafruit_circuitpython_busdevice.egg-info/dependency_links.txt
writing requirements toadafruit_circuitpython_busdevice.egg-info/requires.txt
writing top-level names toadafruit_circuitpython_busdevice.egg-info/top_level.txt
reading manifest file
'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file
'adafruit_circuitpython_busdevice.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
runninginstall_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/adafruit_bus_device
copyingbuild/lib/adafruit_bus_device/i2c_device.py->
build/bdist.linux-x86_64/wheel/adafruit_bus_device
copyingbuild/lib/adafruit_bus_device/spi_device.py->
build/bdist.linux-x86_64/wheel/adafruit_bus_device
copyingbuild/lib/adafruit_bus_device/__init__.py->
build/bdist.linux-x86_64/wheel/adafruit_bus_device
runninginstall_egg_info
Copying adafruit_circuitpython_busdevice.egg-info to
build/bdist.linux-x86_64/wheel/adafruit_circuitpython_busdevice-5.2.3-py3.10.egg-info
runninginstall_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating
build/bdist.linux-x86_64/wheel/adafruit_circuitpython_busdevice-5.2.3.dist-info/WHEEL
creating
'/home/ff/yocto/builds/kirkstone/tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/dist/tmp0so8qe26/adafruit_circuitpython_busdevice-5.2.3-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'adafruit_bus_device/__init__.py'
adding 'adafruit_bus_device/i2c_device.py'
adding 'adafruit_bus_device/spi_device.py'
adding 'adafruit_circuitpython_busdevice-5.2.3.dist-info/LICENSE'Quoted 8 lines
adding 'adafruit_circuitpython_busdevice-5.2.3.dist-info/METADATA' adding 'adafruit_circuitpython_busdevice-5.2.3.dist-info/WHEEL' adding
'adafruit_circuitpython_busdevice-5.2.3.dist-info/top_level.txt'
adding 'adafruit_circuitpython_busdevice-5.2.3.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel
Successfully built adafruit-circuitpython-busdevice-5.2.3.tar.gz
and adafruit_circuitpython_busdevice-5.2.3-py3-none-any.whlIf I disable isolation with a clean recipe workdir instead, it builds an "empty" wheel:
Quoted 67 lines
* Getting build dependencies for sdist...
runningegg_info
creating UNKNOWN.egg-info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txt
writing top-level names toUNKNOWN.egg-info/top_level.txt
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
* Building sdist...
running sdist
runningegg_info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txt
writing top-level names toUNKNOWN.egg-info/top_level.txt
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
running check
creating UNKNOWN-0.0.0
creating UNKNOWN-0.0.0/UNKNOWN.egg-info
copying files to UNKNOWN-0.0.0...
copying LICENSE -> UNKNOWN-0.0.0
copyingREADME.rst-> UNKNOWN-0.0.0
copying pyproject.toml -> UNKNOWN-0.0.0
copying setup.cfg -> UNKNOWN-0.0.0
copying UNKNOWN.egg-info/PKG-INFO -> UNKNOWN-0.0.0/UNKNOWN.egg-info
copyingUNKNOWN.egg-info/SOURCES.txt->
UNKNOWN-0.0.0/UNKNOWN.egg-info
copyingUNKNOWN.egg-info/dependency_links.txt->
UNKNOWN-0.0.0/UNKNOWN.egg-info
copyingUNKNOWN.egg-info/top_level.txt->
UNKNOWN-0.0.0/UNKNOWN.egg-info
Writing UNKNOWN-0.0.0/setup.cfg
Creating tar archive
removing 'UNKNOWN-0.0.0' (and everything under it)
* Building wheel from sdist
* Getting build dependencies for wheel...
runningegg_info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txt
writing top-level names toUNKNOWN.egg-info/top_level.txt
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
* Building wheel...
runningbdist_wheel
running build
installing to build/bdist.linux-x86_64/wheel
running install
runninginstall_egg_info
runningegg_info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txt
writing top-level names toUNKNOWN.egg-info/top_level.txt
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
Copying UNKNOWN.egg-info to
build/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0-py3.10.egg-info
runninginstall_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating
build/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0.dist-info/WHEEL
creating
'/home/ff/yocto/builds/kirkstone/tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/dist/tmpfoz232kv/UNKNOWN-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to itQuoted 8 lines
adding 'UNKNOWN-0.0.0.dist-info/LICENSE'
adding 'UNKNOWN-0.0.0.dist-info/METADATA'
adding 'UNKNOWN-0.0.0.dist-info/WHEEL'
adding 'UNKNOWN-0.0.0.dist-info/top_level.txt'
adding 'UNKNOWN-0.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built UNKNOWN-0.0.0.tar.gz and
UNKNOWN-0.0.0-py3-none-any.whlSo, the first failed call without parameter "--no-isolation" modifies the python installation in recipe-sysroot-native so that the second call with the parameter succeeds. I confirmed this with looking at touched files before and after executing the command. Mostly cache files were created and some files changed.
How can I put the python installation in recipe-sysroot-native into a state so that the build command succeeds right away? Or is my approach wrong in the first place?
Best regards, FF
[1] <https://pypi.org/project/adafruit-circuitpython-busdevice/>
[2] <https://pypi.org/project/build/>-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#100577): <https://lists.openembedded.org/g/openembedded-devel/message/100577>
Mute This Topic: <https://lists.openembedded.org/mt/96294851/3618223>
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 2 lines · Markus Volk via lists.openembedded.org
You can try to 'inherit
python_setuptools_build_meta' for your recipe
This is the correct solution. The recipe uses pyproject.toml and setuptools, so you can just inherit setuptools_build_meta (which will then use build).
Ross
Quoted 5 lines · Ross Burton
Quoted 2 lines · Markus Volk via lists.openembedded.org
You can try to 'inherit
python_setuptools_build_meta' for your recipeThis is the correct solution. The recipe uses pyproject.toml and setuptools, so you can just inherit
setuptools_build_meta(which will then use build).
Thanks for your responses. That was my first approach (and I should have mentioned the results already in the first message), but it did not generate the wheel correctly. Instead I see this in the do_compile log:
Quoted 20 lines
Quoted 1 line
DEBUG: Executing shell function
do_compilerunning
bdist_wheel
running build
installing to build/bdist.linux-x86_64/wheel
running install
runninginstall_egg_info
runningegg_info
creating UNKNOWN.egg-info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txt
writing top-level names toUNKNOWN.egg-info/top_level.txt
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
listing git files failed - pretending there aren't any
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
Copying UNKNOWN.egg-info to build/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0-py3.10.egg-info runninginstall_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0.dist-info/WHEEL
Quoted 8 lines
creating '
/home/ff/yocto/builds/kirkstone/tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/dist/tmpj7vto26b/UNKNOWN-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'UNKNOWN-0.0.0.dist-info/LICENSE'
adding 'UNKNOWN-0.0.0.dist-info/METADATA'
adding 'UNKNOWN-0.0.0.dist-info/WHEEL'
adding 'UNKNOWN-0.0.0.dist-info/top_level.txt'
adding 'UNKNOWN-0.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
DEBUG: Shell functiondo_compilefinished
Similarly, the installed files are missing any source files:
tree tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/image/
Quoted 11 lines
tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/image/
└── usr └── lib └── python3.10 └── site-packages └── UNKNOWN-0.0.0.dist-info ├── LICENSE ├── METADATA ├── RECORD ├── WHEEL └── top_level.txt
It seems something is still missing but from looking at other recipes inheriting from pypi and python_setuptools_build_meta I don't see anything else I should add.
Quoted 64 lines · Florian Frank
Quoted 1 line · Ross Burton
On 15 Jan 2023, at 21:55, Markus Volk via lists.openembedded.org <f_l_k=
Quoted 4 lines · [email protected]> wrote:
Quoted 2 lines
You can try to 'inherit
python_setuptools_build_meta' for your recipeThis is the correct solution. The recipe uses pyproject.toml and
setuptools, so you can just inherit
setuptools_build_meta(which will then use build).Thanks for your responses. That was my first approach (and I should have mentioned the results already in the first message), but it did not generate the wheel correctly. Instead I see this in the
do_compilelog:Quoted 17 lines
Quoted 1 line
DEBUG: Executing shell function
do_compilerunning
bdist_wheel
running build
installing to build/bdist.linux-x86_64/wheel
running install
runninginstall_egg_info
runningegg_info
creating UNKNOWN.egg-info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txtwriting top-level names toUNKNOWN.egg-info/top_level.txtwriting manifest file 'UNKNOWN.egg-info/SOURCES.txt' listing git files failed - pretending there aren't any reading manifest file 'UNKNOWN.egg-info/SOURCES.txt' adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt' Copying UNKNOWN.egg-info tobuild/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0-py3.10.egg-info
Quoted 4 lines
running
install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*") creating build/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0.dist-info/WHEEL creating'
/home/ff/yocto/builds/kirkstone/tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/dist/tmpj7vto26b/UNKNOWN-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to itQuoted 7 lines
adding 'UNKNOWN-0.0.0.dist-info/LICENSE'
adding 'UNKNOWN-0.0.0.dist-info/METADATA'
adding 'UNKNOWN-0.0.0.dist-info/WHEEL'
adding 'UNKNOWN-0.0.0.dist-info/top_level.txt'
adding 'UNKNOWN-0.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
DEBUG: Shell functiondo_compilefinishedSimilarly, the installed files are missing any source files:
tree
tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/image/
Quoted 1 line
tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/image/
Quoted 10 lines
└── usr └── lib └── python3.10 └── site-packages └── UNKNOWN-0.0.0.dist-info ├── LICENSE ├── METADATA ├── RECORD ├── WHEEL └── top_level.txt
Quoted 5 lines
It seems something is still missing but from looking at other recipes inheriting from pypi and
python_setuptools_build_metaI don't see anything else I should add.
This works fine on master/mickledore, but the root cause is the lack of PEP-621 support in setuptools 59.5.0 in kirkstone.
See https://github.com/pypa/setuptools/issues/3269#issuecomment-1254507377
The fix appears to be adding the following (at a minimum) to a setup.cfg file:
[metadata]
name = adafruit_circuitpython_busdevice
version = 5.2.3
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
for more options
The other option would be to fall back to the 5.2.0 release and "inherit pypi setuptools3" which will also happily build a wheel.
The 5.2.0 release was before the switch to pyproject.toml.
Quoted 11 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#100639):
https://lists.openembedded.org/g/openembedded-devel/message/100639
Mute This Topic: https://lists.openembedded.org/mt/96294851/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 83 lines · Tim Orling via lists.openembedded.org
Quoted 64 lines · Florian Frank
Quoted 1 line · Ross Burton
On 15 Jan 2023, at 21:55, Markus Volk via lists.openembedded.org
Quoted 4 lines · <[email protected]> wrote:
Quoted 2 lines
You can try to 'inherit
python_setuptools_build_meta' for your recipeThis is the correct solution. The recipe uses pyproject.toml and
setuptools, so you can just inherit
setuptools_build_meta(which will then use build).Thanks for your responses. That was my first approach (and I should have mentioned the results already in the first message), but it did not generate the wheel correctly. Instead I see this in the
do_compilelog:Quoted 17 lines
Quoted 1 line
DEBUG: Executing shell function
do_compilerunning
bdist_wheel
running build
installing to build/bdist.linux-x86_64/wheel
running install
runninginstall_egg_info
runningegg_info
creating UNKNOWN.egg-info
writing UNKNOWN.egg-info/PKG-INFO
writingdependency_linkstoUNKNOWN.egg-info/dependency_links.txtwriting top-level names toUNKNOWN.egg-info/top_level.txtwriting manifest file 'UNKNOWN.egg-info/SOURCES.txt' listing git files failed - pretending there aren't any reading manifest file 'UNKNOWN.egg-info/SOURCES.txt' adding license file 'LICENSE'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt' Copying UNKNOWN.egg-info tobuild/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0-py3.10.egg-info
Quoted 4 lines
running
install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*") creating build/bdist.linux-x86_64/wheel/UNKNOWN-0.0.0.dist-info/WHEEL creating'
/home/ff/yocto/builds/kirkstone/tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/dist/tmpj7vto26b/UNKNOWN-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to itQuoted 7 lines
adding 'UNKNOWN-0.0.0.dist-info/LICENSE'
adding 'UNKNOWN-0.0.0.dist-info/METADATA'
adding 'UNKNOWN-0.0.0.dist-info/WHEEL'
adding 'UNKNOWN-0.0.0.dist-info/top_level.txt'
adding 'UNKNOWN-0.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
DEBUG: Shell functiondo_compilefinishedSimilarly, the installed files are missing any source files:
tree
tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/image/
Quoted 1 line
tmp/work/arm1176jzfshf-vfp-poky-linux-musleabi/python3-adafruit-circuitpython-busdevice/5.2.3-r0/image/
Quoted 10 lines
└── usr └── lib └── python3.10 └── site-packages └── UNKNOWN-0.0.0.dist-info ├── LICENSE ├── METADATA ├── RECORD ├── WHEEL └── top_level.txtQuoted 5 lines
It seems something is still missing but from looking at other recipes inheriting from pypi and
python_setuptools_build_metaI don't see anything else I should add.This works fine on master/mickledore, but the root cause is the lack of PEP-621 support in setuptools 59.5.0 in kirkstone.
See https://github.com/pypa/setuptools/issues/3269#issuecomment-1254507377The fix appears to be adding the following (at a minimum) to a setup.cfg file:
[metadata]
name =adafruit_circuitpython_busdevice
version = 5.2.3
Quoted 4 lines
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
for more optionsThis wasn't enough to package the .py files... something more like:
[metadata]
name = adafruit_circuitpython_busdevice
description = "CircuitPython bus device classes to manage bus sharing." version = 5.2.3
readme = "README.rst"
author = "Adafruit Industries"author_email = "[email protected]"project_urls = {Homepage = "
https://github.com/adafruit/Adafruit_CircuitPython_BusDevice"}
keywords = "adafruit", "spi", "i2c", "bus", "device", "micropython", "circuitpython"
license = {text = "MIT"}
classifiers =
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Embedded Systems", "Topic :: System :: Hardware",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
dynamic = ["dependencies", "optional-dependencies"]
[options]
packages = find:
Quoted 19 lines
The other option would be to fall back to the 5.2.0 release and "inherit pypi setuptools3" which will also happily build a wheel.
The 5.2.0 release was before the switch to pyproject.toml.Quoted 3 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#100642):
https://lists.openembedded.org/g/openembedded-devel/message/100642
Mute This Topic: https://lists.openembedded.org/mt/96294851/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-