Skip to content

Commit

Permalink
[FIX] runbot: remove useless pip warning
Browse files Browse the repository at this point in the history
When pip installs a package that contains a script, it goes in
`~/.local/bin` directory of the current user. This leads to a log warning
to warn the user that the script won't be accessible by other users.

e.g.:
`WARNING: The script pygmentize is installed in '/home/odoo/.local/bin'
which is not on PATH.`

This is particularly annoying for documentation builds because it may
confuse the users.
  • Loading branch information
d-fence committed Mar 9, 2023
1 parent 6fdd35e commit 7ee62d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runbot/models/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ def _cmd(self, python_params=None, py_version=None, local_only=True, sub_command
if not self.params_id.skip_requirements and os.path.isfile(commit_id._source_path('requirements.txt')):
repo_dir = self._docker_source_folder(commit_id)
requirement_path = os.path.join(repo_dir, 'requirements.txt')
pres.append([f'python{py_version}', '-m', 'pip', 'install','--user', '--progress-bar', 'off', '-r', f'{requirement_path}'])
pres.append([f'python{py_version}', '-m', 'pip', 'install','--user', '--progress-bar', 'off', '--no-warn-script-location', '-r', f'{requirement_path}'])

addons_paths = self._get_addons_path()
(server_commit, server_file) = self._get_server_info()
Expand Down

0 comments on commit 7ee62d5

Please sign in to comment.