mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
parent
8e22a94f41
commit
e2c9a0f743
|
@ -289,6 +289,23 @@ where setup.py is not in the root of project, "subdirectory" component
|
||||||
is used. Value of "subdirectory" component should be a path starting from root
|
is used. Value of "subdirectory" component should be a path starting from root
|
||||||
of the project to where setup.py is located.
|
of the project to where setup.py is located.
|
||||||
|
|
||||||
|
So if your repository layout is:
|
||||||
|
|
||||||
|
- pkg_dir/
|
||||||
|
|
||||||
|
- setup.py # setup.py for package ``pkg``
|
||||||
|
- some_module.py
|
||||||
|
- other_dir/
|
||||||
|
|
||||||
|
- some_file
|
||||||
|
- some_other_file
|
||||||
|
|
||||||
|
You'll need to use ``pip install -e vcs+protocol://repo_url/#egg=pkg&subdirectory=pkg_dir``.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
The subdirectory component can currently only be used for editable installs.
|
||||||
|
|
||||||
|
|
||||||
Git
|
Git
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Reference in a new issue