# emerge dev-python/autocommand
* IMPORTANT: 2 config files in '/etc/portage' need updating.
Calculating dependencies
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
.... done!
!!! The following installed packages are masked:
- dev-qt/qtbase-6.4.0::qt (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Jimi Huotari <chiitoo@gentoo.org> (2022-08-02)
# Masked for testing. The split of some packages may still
# change. bug #838970.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
>>> Verifying ebuild manifests
>>> Jobs: 0 of 1 complete, 1 running Load avg: 2.02, 2.15, 1.59
>>> Emerging (1 of 1) dev-python/autocommand-2.2.2::gentoo
>>> Jobs: 0 of 1 complete, 1 running Load avg: 2.02, 2.15, 1.59
>>> Failed to emerge dev-python/autocommand-2.2.2, Log file:
>>> Jobs: 0 of 1 complete, 1 running Load avg: 2.02, 2.15, 1.59
>>> '/var/tmp/portage/dev-python/autocommand-2.2.2/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 running Load avg: 2.02, 2.15, 1.59
>>> Jobs: 0 of 1 complete, 1 running, 1 failed Load avg: 2.02, 2.15, 1.59
>>> Jobs: 0 of 1 complete, 1 failed Load avg: 2.02, 2.15, 1.59
* Package: dev-python/autocommand-2.2.2:0
* Repository: gentoo
* Maintainer: python@gentoo.org
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 python_targets_python3_9 userland_GNU
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking autocommand-2.2.2.gh.tar.gz to /var/tmp/portage/dev-python/autocommand-2.2.2/work
>>> Source unpacked in /var/tmp/portage/dev-python/autocommand-2.2.2/work
>>> Preparing source in /var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2 ...
* Build system packages:
* dev-python/gpep517 : 11
* dev-python/installer : 0.5.1-r1
* dev-python/setuptools : 65.6.3
* dev-python/setuptools_scm : 7.0.5
* dev-python/wheel : 0.38.4
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2 ...
* python3_9: running distutils-r1_run_phase distutils-r1_python_compile
* Building the wheel for autocommand-2.2.2 via setuptools.build_meta:__legacy__
gpep517 build-wheel --backend setuptools.build_meta:__legacy__ --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2-python3_9/wheel
2022-11-26 13:51:59,774 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.9/gpep517", line 4, in <module>
sys.exit(main())
File "/usr/lib/python3.9/site-packages/gpep517/__main__.py", line 339, in main
return func(args)
File "/usr/lib/python3.9/site-packages/gpep517/__main__.py", line 139, in build_wheel
print(build_wheel_impl(args, args.wheel_dir), file=out)
File "/usr/lib/python3.9/site-packages/gpep517/__main__.py", line 131, in build_wheel_impl
wheel_name = backend.build_wheel(str(wheel_dir), args.config_json)
File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", line 413, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir
self.run_setup()
File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 8, in <module>
File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 159, in setup
dist.parse_config_files()
File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 867, in parse_config_files
pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
File "/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 62, in apply_configuration
config = read_configuration(filepath, True, ignore_option_errors, dist)
File "/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 115, in read_configuration
if dist and getattr(dist, "include_package_data") is not None:
AttributeError: 'Distribution' object has no attribute 'include_package_data'
* ERROR: dev-python/autocommand-2.2.2::gentoo failed (compile phase):
* Wheel build failed
*
* Call stack:
* ebuild.sh, line 122: Called src_compile
* environment, line 3304: Called distutils-r1_src_compile
* environment, line 1534: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
* environment, line 687: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2997: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2560: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2558: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 1010: Called distutils-r1_run_phase 'distutils-r1_python_compile'
* environment, line 1516: Called distutils-r1_python_compile
* environment, line 1340: Called distutils_pep517_install '/var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2-python3_9/install'
* environment, line 1834: Called die
* The specific snippet of code:
* local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
*
* If you need support, post the output of `emerge --info '=dev-python/autocommand-2.2.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-python/autocommand-2.2.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-python/autocommand-2.2.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/autocommand-2.2.2/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2'
* S: '/var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2'
* Messages for package dev-python/autocommand-2.2.2:
* ERROR: dev-python/autocommand-2.2.2::gentoo failed (compile phase):
* Wheel build failed
*
* Call stack:
* ebuild.sh, line 122: Called src_compile
* environment, line 3304: Called distutils-r1_src_compile
* environment, line 1534: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
* environment, line 687: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2997: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2560: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 2558: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 1010: Called distutils-r1_run_phase 'distutils-r1_python_compile'
* environment, line 1516: Called distutils-r1_python_compile
* environment, line 1340: Called distutils_pep517_install '/var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2-python3_9/install'
* environment, line 1834: Called die
* The specific snippet of code:
* local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
*
* If you need support, post the output of `emerge --info '=dev-python/autocommand-2.2.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-python/autocommand-2.2.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-python/autocommand-2.2.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/autocommand-2.2.2/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2'
* S: '/var/tmp/portage/dev-python/autocommand-2.2.2/work/autocommand-2.2.2'
Problem
Intention of the following block of code is to provide default value in case if it is missing in the config, but instead it raises
AttributeErrorifdisthas noinclude_package_dataattribute.setuptools/setuptools/config/pyprojecttoml.py
Lines 115 to 118 in 92ebeed
Suggested solution
Add
Nonedefault value to makegetattrhappy.Origins
This issue was originally reported at Gentoo IRC channel.
System settings
Build error