Don't check against root directory

This commit is contained in:
Frost Ming
2020-05-28 21:50:26 +08:00
committed by frostming
parent b5becd8f3b
commit bad0846246
2 changed files with 2 additions and 10 deletions
-8
View File
@@ -568,14 +568,6 @@ def ensure_project(
system = True
if not project.pipfile_exists and deploy:
raise exceptions.PipfileNotFound
# Fail if working under /
if not project.name:
click.echo(
"{0}: Pipenv is not intended to work under the root directory, "
"please choose another path.".format(crayons.red("ERROR")),
err=True
)
sys.exit(1)
# Skip virtualenv creation when --system was used.
if not system:
ensure_virtualenv(
+2 -2
View File
@@ -685,8 +685,8 @@ class Project(object):
from .vendor.pip_shims.shims import (
ConfigOptionParser, make_option_group, index_group
)
config_parser = ConfigOptionParser(name=self.name)
# Inherit the pip's index configuration of install command.
config_parser = ConfigOptionParser(name="install")
config_parser.add_option_group(make_option_group(index_group, config_parser))
install = config_parser.option_groups[0]
indexes = (