add py3.5 netifaces
This commit is contained in:
parent
717a291e19
commit
86cc34eed3
228 changed files with 1616 additions and 65914 deletions
|
|
@ -24,6 +24,7 @@ from pip.utils.deprecation import RemovedInPip10Warning
|
|||
from pip.utils.filesystem import check_path_owner
|
||||
from pip.wheel import WheelCache, WheelBuilder
|
||||
|
||||
from pip.locations import running_under_virtualenv
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -54,6 +55,12 @@ class InstallCommand(RequirementCommand):
|
|||
def __init__(self, *args, **kw):
|
||||
super(InstallCommand, self).__init__(*args, **kw)
|
||||
|
||||
default_user = True
|
||||
if running_under_virtualenv():
|
||||
default_user = False
|
||||
if os.geteuid() == 0:
|
||||
default_user = False
|
||||
|
||||
cmd_opts = self.cmd_opts
|
||||
|
||||
cmd_opts.add_option(cmdoptions.constraints())
|
||||
|
|
@ -103,6 +110,7 @@ class InstallCommand(RequirementCommand):
|
|||
'-I', '--ignore-installed',
|
||||
dest='ignore_installed',
|
||||
action='store_true',
|
||||
default=default_user,
|
||||
help='Ignore the installed packages (reinstalling instead).')
|
||||
|
||||
cmd_opts.add_option(cmdoptions.no_deps())
|
||||
|
|
@ -114,10 +122,20 @@ class InstallCommand(RequirementCommand):
|
|||
'--user',
|
||||
dest='use_user_site',
|
||||
action='store_true',
|
||||
default=default_user,
|
||||
help="Install to the Python user install directory for your "
|
||||
"platform. Typically ~/.local/, or %APPDATA%\Python on "
|
||||
"Windows. (See the Python documentation for site.USER_BASE "
|
||||
"for full details.)")
|
||||
"for full details.) On Debian systems, this is the "
|
||||
"default when running outside of a virtual environment "
|
||||
"and not as root.")
|
||||
|
||||
cmd_opts.add_option(
|
||||
'--system',
|
||||
dest='use_user_site',
|
||||
action='store_false',
|
||||
help="Install using the system scheme (overrides --user on "
|
||||
"Debian systems)")
|
||||
|
||||
cmd_opts.add_option(
|
||||
'--egg',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue