setup lit is incompatible with setuptools 60 and newer #117
Open
Description
When the host system uses setuptools
60 or newer, the setup lit
step always fails with:
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: install_layout. Did you mean: 'install_platlib'?
Additional warnings during the setup of lit
shows that there are more incompatibilities to be expected with future versions of setuptools
.
Downgrading setuptools
to version 59 fixes the problem.
Full backtrace:
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/bin/python /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/lnt/setup.py develop
in dir /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox (timeout 1200 secs)
watching logfiles {}
argv: [b'/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/bin/python', b'/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/lnt/setup.py', b'develop']
environment:
HOME=/var/lib/buildbot
INVOCATION_ID=dd51c1c309ba443e9df565763ab364e1
JOURNAL_STREAM=8:28636007
LANG=en_US.UTF-8
LOGNAME=buildbot
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/system-buildbot\x2dworker.slice/[email protected]/memory.pressure
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PWD=/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox
SYSTEMD_EXEC_PID=672374
USER=buildbot
using PTY: False
running develop
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running egg_info
writing LNT.egg-info/PKG-INFO
writing dependency_links to LNT.egg-info/dependency_links.txt
writing entry points to LNT.egg-info/entry_points.txt
writing requirements to LNT.egg-info/requires.txt
writing top-level names to LNT.egg-info/top_level.txt
reading manifest file 'LNT.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'tests/*/Output'
no previously-included directories found matching 'tests/*/*/Output'
adding license file 'LICENSE.TXT'
writing manifest file 'LNT.egg-info/SOURCES.txt'
running build_ext
Creating /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/LNT.egg-link (link to .)
Adding LNT 0.4.2.dev0 to easy-install.pth file
Installing lnt script to /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/bin
Installed /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/lnt
Processing dependencies for LNT==0.4.2.dev0
Searching for typing
Reading https://pypi.org/simple/typing/
Downloading https://files.pythonhosted.org/packages/f2/5d/865e17349564eb1772688d8afc5e3081a5964c640d64d1d2880ebaed002d/typing-3.10.0.0-py3-none-any.whl#sha256=12fbdfbe7d6cca1a42e485229afcb0b0c8259258cfb919b8a5e2a5c953742f89
Best match: typing 3.10.0.0
Processing typing-3.10.0.0-py3-none-any.whl
Installing typing-3.10.0.0-py3-none-any.whl to /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages
Adding typing 3.10.0.0 to easy-install.pth file
Installed /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/typing-3.10.0.0-py3.11.egg
Searching for six
Reading https://pypi.org/simple/six/
Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl#sha256=8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254
Best match: six 1.16.0
Processing six-1.16.0-py2.py3-none-any.whl
Installing six-1.16.0-py2.py3-none-any.whl to /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages
Adding six 1.16.0 to easy-install.pth file
detected new path './typing-3.10.0.0-py3.11.egg'
Installed /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/six-1.16.0-py3.11.egg
Searching for requests
Reading https://pypi.org/simple/requests/
Downloading https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl#sha256=58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f
Best match: requests 2.31.0
Processing requests-2.31.0-py3-none-any.whl
Installing requests-2.31.0-py3-none-any.whl to /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages
Adding requests 2.31.0 to easy-install.pth file
detected new path './six-1.16.0-py3.11.egg'
Installed /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/requests-2.31.0-py3.11.egg
Searching for pyyaml==5.1.2
Reading https://pypi.org/simple/pyyaml/
Downloading https://files.pythonhosted.org/packages/e3/e8/b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gz#sha256=01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4
Best match: PyYAML 5.1.2
Processing PyYAML-5.1.2.tar.gz
Writing /tmp/easy_install-ij5eex4l/PyYAML-5.1.2/setup.cfg
Running PyYAML-5.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ij5eex4l/PyYAML-5.1.2/egg-dist-tmp-nvw2ce40
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
Traceback (most recent call last):
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 198, in setup_context
yield
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 259, in run_setup
_execfile(setup_script, ns)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 46, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-ij5eex4l/PyYAML-5.1.2/setup.py", line 291, in <module>
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/dist.py", line 1233, in run_command
super().run_command(command)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/dist.py", line 1233, in run_command
super().run_command(command)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.ensure_finalized()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
self.finalize_options()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
self.set_undefined_options('install',('install_layout','install_layout'))
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 296, in set_undefined_options
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: install_layout. Did you mean: 'install_platlib'?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/lnt/setup.py", line 34, in <module>
setup(
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/dist.py", line 1233, in run_command
super().run_command(command)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/develop.py", line 124, in install_for_development
self.process_distribution(None, self.dist, not self.no_deps)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 812, in process_distribution
distros = WorkingSet([]).resolve(
^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/pkg_resources/__init__.py", line 829, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/pkg_resources/__init__.py", line 865, in _resolve_dist
dist = best[req.key] = env.best_match(
^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1135, in best_match
return self.obtain(req, installer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1147, in obtain
return installer(requirement)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 737, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 762, in install_item
dists = self.install_eggs(spec, download, tmpdir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 956, in install_eggs
return self.build_and_install(setup_script, setup_base)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 1230, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 1216, in run_setup
run_setup(setup_script, args)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 249, in run_setup
with setup_context(setup_dir):
File "/usr/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 190, in setup_context
with save_modules():
File "/usr/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 169, in save_modules
saved_exc.resume()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 143, in resume
raise exc.with_traceback(self._tb)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 198, in setup_context
yield
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 259, in run_setup
_execfile(setup_script, ns)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/sandbox.py", line 46, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-ij5eex4l/PyYAML-5.1.2/setup.py", line 291, in <module>
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/dist.py", line 1233, in run_command
super().run_command(command)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/dist.py", line 1233, in run_command
super().run_command(command)
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.ensure_finalized()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
self.finalize_options()
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
self.set_undefined_options('install',('install_layout','install_layout'))
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 296, in set_undefined_options
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/test/sandbox/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: install_layout
program finished with exit code 1
elapsedTime=9.198554
Metadata
Assignees
Labels
No labels