mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
+4
-3
@@ -14,7 +14,6 @@ import warnings
|
||||
|
||||
from click import echo as click_echo
|
||||
from first import first
|
||||
|
||||
try:
|
||||
from weakref import finalize
|
||||
except ImportError:
|
||||
@@ -225,7 +224,7 @@ def actually_resolve_deps(
|
||||
from pipenv.patched.piptools.scripts.compile import get_pip_command
|
||||
from pipenv.patched.piptools import logging as piptools_logging
|
||||
from pipenv.patched.piptools.exceptions import NoCandidateFound
|
||||
from ._compat import TemporaryDirectory, NamedTemporaryFile, Path
|
||||
from ._compat import TemporaryDirectory, NamedTemporaryFile
|
||||
|
||||
class PipCommand(basecommand.Command):
|
||||
"""Needed for pip-tools."""
|
||||
@@ -603,6 +602,7 @@ def is_installable_file(path):
|
||||
from .patched.notpip._internal.utils.misc import is_installable_dir
|
||||
from .patched.notpip._internal.utils.packaging import specifiers
|
||||
from .patched.notpip._internal.download import is_archive_file
|
||||
from ._compat import Path
|
||||
|
||||
if hasattr(path, 'keys') and any(
|
||||
key for key in path.keys() if key in ['file', 'path']
|
||||
@@ -847,6 +847,7 @@ def find_windows_executable(bin_path, exe_name):
|
||||
|
||||
|
||||
def path_to_url(path):
|
||||
from ._compat import Path
|
||||
return Path(normalize_drive(os.path.abspath(path))).as_uri()
|
||||
|
||||
|
||||
@@ -1152,7 +1153,7 @@ def get_vcs_deps(
|
||||
pypi_mirror=None,
|
||||
):
|
||||
from .patched.notpip._internal.vcs import VcsSupport
|
||||
from ._compat import TemporaryDirectory
|
||||
from ._compat import TemporaryDirectory, Path
|
||||
|
||||
section = "vcs_dev_packages" if dev else "vcs_packages"
|
||||
reqs = []
|
||||
|
||||
Reference in New Issue
Block a user