Skip to content

Commit a103b56

Browse files
fix: Use proper subdirectory syntax for pip url fragments (#1208)
* Use the correct syntax for url fragments with pip of the form python -m pip install "pkg @ vcs+protocol://repo_url/#subdirectory=pkg_dir" - c.f. https://pip.pypa.io/en/stable/topics/vcs-support/#url-fragments * Revises PR #1207 Co-authored-by: sinoroc <sinoroc.code+git@gmail.com>
1 parent d36954f commit a103b56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/specifications/direct-url.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@ Commands that generate a ``direct_url.json``:
299299

300300
* ``pip install https://example.com/app-1.0.tgz``
301301
* ``pip install https://example.com/app-1.0.whl``
302-
* ``pip install "app&subdirectory=setup @ git+https://example.com/repo/app.git"``
302+
* ``pip install "app @ git+https://example.com/repo/app.git#subdirectory=setup"``
303303
* ``pip install ./app``
304304
* ``pip install file:///home/user/app``
305-
* ``pip install --editable "app&subdirectory=setup @ git+https://example.com/repo/app.git"``
305+
* ``pip install --editable "app @ git+https://example.com/repo/app.git#subdirectory=setup"``
306306
(in which case, ``url`` will be the local directory where the git repository has been
307307
cloned to, and ``dir_info`` will be present with ``"editable": true`` and no
308308
``vcs_info`` will be set)

0 commit comments

Comments
 (0)