Skip to content

Commit

Permalink
Add Pip option not to warn about scripts
Browse files Browse the repository at this point in the history
With local virtualenvs we often get these warnings, but they have no
meaning when calling tools programmatically in Python code.
  • Loading branch information
markgw committed Aug 7, 2020
1 parent fdc557a commit f5acb2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pimlico/core/dependencies/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def install(self, local_config, trust_downloaded_archives=False):
package = self.pip_package

# Use subprocess to call Pip: the recommended way to use it programmatically
subprocess.check_call([sys.executable, '-m', 'pip', 'install'] + options + [package])
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--no-warn-script-location'] + options + [package])

# Refresh sys.path so we can import the installed package
import site
Expand Down

0 comments on commit f5acb2b

Please sign in to comment.