@@ -106,30 +106,32 @@ def _disable_pip_configuration_settings():
106106 os .environ ['PIP_CONFIG_FILE' ] = os .devnull
107107
108108
109- def bootstrap (* , root = None , prefix = None , upgrade = False , user = False ,
109+ def bootstrap (* , root = None , upgrade = False , user = False ,
110110 altinstall = False , default_pip = False ,
111- verbosity = 0 ):
111+ verbosity = 0 , prefix = None ):
112112 """
113113 Bootstrap pip into the current Python installation (or the given root
114114 and directory prefix).
115115
116116 Note that calling this function will alter both sys.path and os.environ.
117117 """
118118 # Discard the return value
119- _bootstrap (root = root , prefix = prefix , upgrade = upgrade , user = user ,
119+ _bootstrap (root = root , upgrade = upgrade , user = user ,
120120 altinstall = altinstall , default_pip = default_pip ,
121- verbosity = verbosity )
121+ verbosity = verbosity , prefix = prefix )
122122
123123
124- def _bootstrap (* , root = None , prefix = None , upgrade = False , user = False ,
124+ def _bootstrap (* , root = None , upgrade = False , user = False ,
125125 altinstall = False , default_pip = False ,
126- verbosity = 0 ):
126+ verbosity = 0 , prefix = None ):
127127 """
128128 Bootstrap pip into the current Python installation (or the given root
129129 and directory prefix). Returns pip command status code.
130130
131131 Note that calling this function will alter both sys.path and os.environ.
132132 """
133+ if root is not None and prefix is not None :
134+ raise ValueError ("Cannot use 'root' and 'prefix' together" )
133135 if altinstall and default_pip :
134136 raise ValueError ("Cannot use altinstall and default_pip together" )
135137
0 commit comments