mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #507 from sbidoul/subdir-sbi
vcs &subdirectory support
This commit is contained in:
@@ -154,6 +154,10 @@ def convert_deps_from_pip(dep):
|
||||
if req.editable:
|
||||
dependency[req.name].update({'editable': True})
|
||||
|
||||
# Add subdirectory, if it's there
|
||||
if req.subdirectory:
|
||||
dependency[req.name].update({'subdirectory': req.subdirectory})
|
||||
|
||||
# Add the specifier, if it was provided.
|
||||
if req.revision:
|
||||
dependency[req.name].update({'ref': req.revision})
|
||||
@@ -229,6 +233,10 @@ def convert_deps_to_pip(deps, r=True):
|
||||
|
||||
extra += '#egg={0}'.format(dep)
|
||||
|
||||
# Support for subdirectory
|
||||
if 'subdirectory' in deps[dep]:
|
||||
extra += '&subdirectory={0}'.format(deps[dep]['subdirectory'])
|
||||
|
||||
# Support for editable.
|
||||
if 'editable' in deps[dep]:
|
||||
# Support for --egg.
|
||||
|
||||
Reference in New Issue
Block a user