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
58c08402
Commit
58c08402
authored
May 31, 2024
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat] Disable pip caching for reproducibility
parent
e96063d6
Changes
1
Show 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 @
58c08402
...
@@ -1877,6 +1877,12 @@ try:
...
@@ -1877,6 +1877,12 @@ try:
except
ImportError
:
except
ImportError
:
PIP_HAS_PYTHON_VERSION_WARNING_OPTION
=
False
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
):
def
call_pip_command
(
command
,
operand
,
options
,
verbosity
=-
10
):
"""
"""
...
@@ -1929,6 +1935,10 @@ def call_pip_command(command, operand, options, verbosity=-10):
...
@@ -1929,6 +1935,10 @@ def call_pip_command(command, operand, options, verbosity=-10):
else
:
else
:
args
.
append
(
'--no-python-version-warning'
)
args
.
append
(
'--no-python-version-warning'
)
if
PIP_HAS_CACHE_OPTION
:
# Disable pip caching
args
.
append
(
'--no-cache-dir'
)
args
.
extend
(
operand
)
args
.
extend
(
operand
)
if
log_level
<
logging
.
DEBUG
:
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