I'm trying to create a Python3 recipe for pyee https://pypi.org/project/pyee/ The package has a pyproject.toml but no setup.py. The build system section: [build-system] requires = ["setuptools", "setuptools-scm", "wheel"] build-backend = "setuptools.build_meta"
Here's my recipe python3-pyee_11.1.0.bb: > > > > inherit pypi python_setuptools_build_meta > > LICENSE = "MIT" > LIC_FILES_CHKSUM = "file://LICENSE;md5=b2b1cc8797dff32cec5d783148fceab5" > > SRC_URI[md5sum] = "b12a1105a13a218ef0d6b1fa6cb6425a" > SRC_URI[sha1sum] = "50661cf14bb6e8093ff623856bcdb10400d2ff0b" > SRC_URI[sha256sum] = > "b53af98f6990c810edd9b56b87791021a8f54fd13db4edd1142438d44ba2263f" > SRC_URI[sha384sum] = > "ff6c091d3a824b164a175fd9996c7e4e859c2a59441df6ea140eafab525656669ee51412508b0f5398027a9404c8e785" > > SRC_URI[sha512sum] = > "86dd34b6d353be9c01a84cbe7cfbdc70eb8ad75626bfde48d0c7d9b027650df3c51edc8c002b6d011a51868b0ad92b6b44e34618f20861313899221730130f16" > > > RDEPENDS:${PN} += "python3-typing-extensions" > > # pyee uses pyproject.toml instead of setup.py, so need below > do_configure:prepend() { > cat > ${S}/setup.py <<-EOF > from setuptools import setup > from setuptools import find_packages > setup( > name="${PYPI_PACKAGE}", > version="${PV}", > license="${LICENSE}", > package_dir={'': 'pyee'}, > packages=find_packages(''), > python_requires=">=3.8", > zip_safe=True, > ) > EOF > } > > > > This does not put the package code into site-packages/pyee > $ tree ./tmp/work/corei7-64-poky-linux/python3-pyee/11.1.0-r0/image/ > ./tmp/work/corei7-64-poky-linux/python3-pyee/11.1.0-r0/image/ > └── usr > └── lib > └── python3.10 > └── site-packages > └── pyee-11.1.0.dist-info > ├── LICENSE > ├── METADATA > ├── RECORD > ├── top_level.txt > ├── WHEEL > └── zip-safe > > Any help is appreciated.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63100): https://lists.yoctoproject.org/g/yocto/message/63100 Mute This Topic: https://lists.yoctoproject.org/mt/106120050/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-