Timeline for pip install from git repo branch
Current License: CC BY-SA 4.0
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 28, 2024 at 11:04 | comment | added | Dan | I don't think installing form the archive works correctly, since pip expect the archive to be an 'sdist' file. In practice I get slightly different results than installing from a local folder, and it doesn't work in some strange ways. | |
| Feb 6, 2024 at 21:22 | comment | added | davetapley |
See here for adding to requirements.txt.
|
|
| Jan 26, 2023 at 21:53 | comment | added | Michael come lately |
There are reports that recursive dependency installation doesn't work when you use pipenv for archives, but it works for me. I think it was fixed in 2018-09.
|
|
| Feb 27, 2022 at 14:55 | comment | added | Jos Verlinde | Found the .zip install to be much faster when using repos that contain multiple levels of submodules. Skipping the recursive submodule downloads offers a speed advantage , but may also break dependencies. | |
| Feb 11, 2022 at 18:24 | comment | added | vtnate | FWIW using pip 22 the accepted answer was not any slower than this method, and doesn't appear to clone the entire git history of the repo | |
| S Aug 13, 2020 at 19:58 | history | suggested | Teymour | CC BY-SA 4.0 |
improve spelling
|
| Aug 13, 2020 at 15:40 | review | Suggested edits | |||
| S Aug 13, 2020 at 19:58 | |||||
| Jan 2, 2018 at 9:11 | comment | added | Eugene Pakhomov |
Note that despite pipenv is rather similar to pip, using archives with pipenv will not resolve dependencies.
|
|
| S Aug 8, 2017 at 6:41 | history | suggested | Taylor D. Edmiston | CC BY-SA 3.0 |
add detail about using with requirements.txt
|
| Aug 8, 2017 at 1:46 | comment | added | Taylor D. Edmiston |
Okay, so it seems to be possible when running pip install directly and just requires setting the egg name explicitly - pip install https://github.com/apache/incubator-airflow/archive/master.zip#egg=airflow[crypto,slack]. Also the spaces between extras in my previous comment are a mistake. Note that however this syntax with extras does not seem to work in a requirements.txt file.
|
|
| Aug 8, 2017 at 1:21 | comment | added | Taylor D. Edmiston |
Is it possible to install extras using this syntax? For instance, I'm trying to install github.com/apache/incubator-airflow @ master (the normal PyPI package is apache-airflow) to work with an unreleased version. I'd like to convert the call pip install apache-airflow[crypto, slack] to install these extras with the archive version. I tried pip install https://github.com/apache/incubator-airflow/archive/master.zip[crypto, slack] but this breaks the URL and installation.
|
|
| Aug 8, 2017 at 1:18 | review | Suggested edits | |||
| S Aug 8, 2017 at 6:41 | |||||
| Jun 2, 2017 at 20:52 | comment | added | RayLuo |
Thanks for pointing out the speed difference. I did not test and compare them, but I believe the speed difference does exist, because installing from a branch would still result in downloading the entire repo history, while installing from a .zip (or .tar.gz) would result in downloading just a snapshot of the repo.
|
|
| Apr 12, 2017 at 3:31 | comment | added | Fush |
This also works for commit hashes! pip install https://github.com/django/django/archive/ebaa08b.zip
|
|
| Mar 31, 2017 at 18:15 | comment | added | cs01 |
I wonder if pip could pass --depth 0 when cloning to make it more efficient (the entire git history is not needed to install a snapshot for pip). git-scm.com/docs/git-clone
|
|
| Jul 3, 2016 at 11:56 | comment | added | spectras |
Note: from Django 1.9 on, Django ships with a file that has a unicode filename. The zip extractor used by pip chokes on that. An easy workaround is to replace .zip with .tar.gz, as the tar extractor works.
|
|
| Jul 17, 2014 at 19:02 | history | answered | Steve K | CC BY-SA 3.0 |