Skip to content

Commit 6974271

Browse files
committed
[GR-70879] Ensurepip should not patch pip.
PullRequest: graalpython/4061
2 parents 89e7cce + b2ea647 commit 6974271

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/lib-python/3/ensurepip/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def _disable_pip_configuration_settings():
118118
# We also ignore the settings in the default pip configuration file
119119
# See http://bugs.python.org/issue20053 for details
120120
os.environ['PIP_CONFIG_FILE'] = os.devnull
121+
# GraalPy patch: disable patching
122+
os.environ['PIP_GRAALPY_DISABLE_PATCHING']='true'
121123

122124

123125
def bootstrap(*, root=None, upgrade=False, user=False,

0 commit comments

Comments
 (0)