Skip to content

Commit fdc794a

Browse files
Update setup of LNT to handle python 3.12+ (#414)
Virtualenv in python 3.12+ no longer installs setuptools by default, see [1]. This patch adds a "pip install setuptools" step to ClangBuilder.py, which seems to be the only place we use virtualenv. Note that running $ VIRTUALENV_SETUPTOOLS=bundle virtualenv sandbox as suggested in virtualenv release notes [2] will install an older/incompatible version of setuptools, at least on Ubuntu 24.04 system. [1] https://virtualenv.pypa.io/en/latest/user_guide.html#seeders [2] https://virtualenv.pypa.io/en/latest/changelog.html#features-20-23-0
1 parent c08f7f5 commit fdc794a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

zorg/buildbot/builders/ClangBuilder.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,12 @@ def _getClangCMakeBuildFactory(
615615
description='recreating sandbox',
616616
workdir='test',
617617
env=env))
618+
f.addStep(ShellCommand(name='install lnt dependencies',
619+
command=[python, '-m', 'pip', 'install', 'setuptools'],
620+
haltOnFailure=True,
621+
description='install lnt dependencies',
622+
workdir='test/sandbox',
623+
env=env))
618624
f.addStep(ShellCommand(name='setup lit',
619625
command=[python, lnt_setup, 'develop'],
620626
haltOnFailure=True,

0 commit comments

Comments
 (0)