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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.buildout
Commits
4d36bf00
Commit
4d36bf00
authored
May 31, 2024
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat] Disable pip caching for reproducibility
parent
f5e1c5da
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 @
4d36bf00
...
...
@@ -1842,6 +1842,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
):
"""
...
...
@@ -1894,6 +1900,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