Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
0bcb1ed8
Commit
0bcb1ed8
authored
May 31, 2024
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat] Disable pip caching for reproducibility
parent
4868bf4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+10
-0
No files found.
src/zc/buildout/easy_install.py
View file @
0bcb1ed8
...
...
@@ -1876,6 +1876,12 @@ try:
except
ImportError
:
PIP_HAS_PYTHON_VERSION_WARNING_OPTION
=
False
try
:
from
pip._internal.cli.cmdoptions
import
no_cache
PIP_HAS_CACHE_OPTION
=
True
except
ImportError
:
PIP_HAS_CACHE_OPTION
=
False
def
call_pip_command
(
command
,
operand
,
options
,
verbosity
=-
10
):
"""
...
...
@@ -1928,6 +1934,10 @@ def call_pip_command(command, operand, options, verbosity=-10):
else
:
args
.
append
(
'--no-python-version-warning'
)
if
PIP_HAS_CACHE_OPTION
:
# Disable pip caching
args
.
append
(
'--no-cache-dir'
)
args
.
extend
(
operand
)
if
log_level
<
logging
.
DEBUG
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment