Skip to content

Commit

Permalink
Use environment to configure breaking system packages. (#1036)
Browse files Browse the repository at this point in the history
This resolves the regression in this script on platforms with older
versions of pip.
  • Loading branch information
nuclearsandwich authored Mar 29, 2024
1 parent 9ad8f02 commit a087b97
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ros_buildfarm/scripts/doc/build_rosdoc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,17 @@ def main(argv=sys.argv[1:]):
clean_workspace(args.workspace_root)

with Scope('SUBSECTION', 'Installing rosdoc2'):
env = {
**os.environ,
'PIP_BREAK_SYSTEM_PACKAGES': '1',
}

pip_rc = subprocess.call(['python3',
'-m',
'pip',
'install',
'--break-system-packages',
'.'],
env=env,
cwd=args.rosdoc2_dir)
if pip_rc:
return pip_rc
Expand Down

0 comments on commit a087b97

Please sign in to comment.