Skip to content

Commit

Permalink
Don't pass '--upgrade' to pip when scanning a requirements file. (#40)
Browse files Browse the repository at this point in the history
It's no longer required, and can cause problems with some packages (like 'xgboost' on Windows).
  • Loading branch information
bbassett-tibco committed Apr 24, 2023
1 parent 8d5bc7a commit 7a25e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotfire/spk.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def scan_requirements_txt(self, requirements: str, constraint: str, prefix: str,

# Install the packages from the requirement file into tempdir.
_message(f"Installing pip packages from {requirements} to temporary location.")
command = [sys.executable, "-m", "pip", "install", "--upgrade", "--disable-pip-version-check",
command = [sys.executable, "-m", "pip", "install", "--disable-pip-version-check",
"--target", tempdir, "--requirement", requirements]
if constraint:
command.extend(["--constraint", constraint])
Expand Down

0 comments on commit 7a25e1a

Please sign in to comment.