Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#77117 - [shiboken6] missing shiboken6-generator
Attached to Project:
Arch Linux
Opened by Alexandre ZANNI (noraj) - Friday, 13 January 2023, 23:08 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 14 January 2023, 14:24 GMT
Opened by Alexandre ZANNI (noraj) - Friday, 13 January 2023, 23:08 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 14 January 2023, 14:24 GMT
|
Detailspyside6 pkgbase is building pyside6 and shiboken6 but is missing shiboken6_generator (cf. https://github.com/archlinux/svntogit-packages/blob/packages/pyside6/trunk/PKGBUILD)
Here is the documentation for building https://doc.qt.io/qtforpython/shiboken6/gettingstarted.html I guess I would look like: pkgname=(shiboken6 pyside6 shiboken6-generator) ... package_shiboken6_generator() { # similar to package_shiboken6() python setup.py egg_info --build-type=shiboken6-generator } |
This task depends upon
Closed by Antonio Rojas (arojas)
Saturday, 14 January 2023, 14:24 GMT
Reason for closing: Fixed
Additional comments about closing: shiboken6 6.4.2-4
Saturday, 14 January 2023, 14:24 GMT
Reason for closing: Fixed
Additional comments about closing: shiboken6 6.4.2-4
For example, a pyproject.toml like that
[build-system]
requires = [
"wheel",
"setuptools>=45",
"setuptools_scm[toml]>=6.0",
"cmake_build_extension",
"PySide6",
"shiboken6",
"shiboken6_generator"
]
build-backend = "setuptools.build_meta"
So in a PKGBUILD if I put makedepends=(... 'pyside6' 'shiboken6' 'shiboken6-generator') and have a build() with python -m build --wheel --outdir="$startdir/dist", of course it will end up with error: target not found: shiboken6-generator since it's not included in the package.
And if I remove 'shiboken6-generator' it will end up like that:
==> Starting build()...
* Creating venv isolated environment...
* Installing packages in isolated environment... (PySide6, cmake_build_extension, setuptools>=45, setuptools_scm[toml]>=6.0, shiboken6, shiboken6_generator, wheel)
Collecting wheel
Downloading wheel-0.38.4-py3-none-any.whl (36 kB)
ERROR: Could not find a version that satisfies the requirement shiboken6_generator (from versions: none)
ERROR: No matching distribution found for shiboken6_generator
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/build/__main__.py", line 375, in main
built = build_call(
File "/usr/lib/python3.10/site-packages/build/__main__.py", line 208, in build_package
out = _build(isolation, builder, outdir, distribution, config_settings, skip_dependency_check)
File "/usr/lib/python3.10/site-packages/build/__main__.py", line 145, in _build
return _build_in_isolated_env(builder, outdir, distribution, config_settings)
File "/usr/lib/python3.10/site-packages/build/__main__.py", line 113, in _build_in_isolated_env
env.install(builder.build_system_requires)
File "/usr/lib/python3.10/site-packages/build/env.py", line 214, in install
_subprocess(cmd)
File "/usr/lib/python3.10/site-packages/build/env.py", line 79, in _subprocess
raise e
File "/usr/lib/python3.10/site-packages/build/env.py", line 76, in _subprocess
subprocess.run(cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/build-env-iwqcti8b/bin/python', '-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '-r', '/tmp/build-reqs-zn85oew9.txt']' returned non-zero exit status 1.
ERROR Command '['/tmp/build-env-iwqcti8b/bin/python', '-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '-r', '/tmp/build-reqs-zn85oew9.txt']' returned non-zero exit status 1.
What do you mean by "The generator is already included in the shiboken6 package."? The word "generator" occurs zero time in pyside6 PKGBUILD but it's true that the package content of shiboken6 shows:
usr/lib/python3.10/site-packages/shiboken6_generator/
usr/lib/python3.10/site-packages/shiboken6_generator/__init__.py
usr/lib/python3.10/site-packages/shiboken6_generator/_config.py
usr/lib/python3.10/site-packages/shiboken6_generator/_git_shiboken_generator_version.py
but there is no usr/lib/python3.10/site-packages/shiboken6_generator.egg-info/ so that's maybe why it is no found?
also in package_shiboken6() there is
python setup.py egg_info --build-type=shiboken6
_pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
cp -r shiboken6.egg-info "$pkgdir"/$_pythonpath
so maybe python setup.py egg_info --build-type=shiboken6_generator and cp -r shiboken6_generator.egg-info "$pkgdir"/$_pythonpath are missing.
I mean that the generator is included in the shiboken6 package. The binary /usr/bin/shiboken6 *is* the generator, regardless of whether it includes the "generator" word in its name or not.
> but there is no usr/lib/python3.10/site-packages/shiboken6_generator.egg-info/
ok, so what you are missing is the metadata.