mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Don't check against root directory
This commit is contained in:
@@ -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
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user