forked from jazzband/pip-tools
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jazzband#657 from techalchemy/pip10-update
Pip10 update
- Loading branch information
Showing
296 changed files
with
232 additions
and
101,668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +0,0 @@ | ||
import os | ||
import sys | ||
|
||
# Inject vendored directory into system path. | ||
v_path = os.path.abspath(os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), '_vendored'])) | ||
sys.path.insert(0, v_path) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- coding=utf-8 -*- | ||
import importlib | ||
|
||
def do_import(module_path, subimport=None, old_path=None): | ||
internal = 'pip._internal.{0}'.format(module_path) | ||
old_path = old_path or module_path | ||
pip9 = 'pip.{0}'.format(old_path) | ||
try: | ||
_tmp = importlib.import_module(internal) | ||
except ImportError: | ||
_tmp = importlib.import_module(pip9) | ||
if subimport: | ||
return getattr(_tmp, subimport, _tmp) | ||
return _tmp | ||
|
||
|
||
InstallRequirement = do_import('req.req_install', 'InstallRequirement') | ||
parse_requirements = do_import('req.req_file', 'parse_requirements') | ||
RequirementSet = do_import('req.req_set', 'RequirementSet') | ||
user_cache_dir = do_import('utils.appdirs', 'user_cache_dir') | ||
FAVORITE_HASH = do_import('utils.hashes', 'FAVORITE_HASH') | ||
is_file_url = do_import('download', 'is_file_url') | ||
url_to_path = do_import('download', 'url_to_path') | ||
PackageFinder = do_import('index', 'PackageFinder') | ||
FormatControl = do_import('index', 'FormatControl') | ||
Wheel = do_import('wheel', 'Wheel') | ||
Command = do_import('basecommand', 'Command') | ||
cmdoptions = do_import('cmdoptions') | ||
get_installed_distributions = do_import('utils.misc', 'get_installed_distributions', old_path='utils') | ||
PyPI = do_import('models.index', 'PyPI') |
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.