You can use the -e option of pip install. Example: pip install -e git+https://github.com/stephenmcd/mezzanine.git@master#egg=Mezzanine pip install -e git+https://github.com/stephenmcd/cartridge.git@master#egg=Cartridge
If you need a requirements.txt file afterwards, just use the output of pip freeze. Le lundi 25 mai 2015 13:07:54 UTC+2, Federico Bruni a écrit : > > Even if I install mezzanine from git repository, the requirements file > created by mezzanine-project will be taken from the version present in > project_template: > > https://github.com/stephenmcd/mezzanine/blob/081dd68c8c53893c28c6c96cca666f6db15317ca/mezzanine/project_template/requirements.txt > > that is, the last stable release. > > How can I turn this: > > $ cat requirements.txt > Mezzanine==3.1.10 > > into a git version? > I need it also for deploying. > > I've read this page > https://pip.pypa.io/en/stable/user_guide.html#requirements-files > and I tried several variants of this: > > Mezzanine==git+ > https://github.com/stephenmcd/mezzanine@master#egg=mezzanine > > but nothing works and I get this error: > > File > "/home/fede/.virtualenvs/mezzanine/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", > > line 2880, in scan_list > raise ValueError(msg, line, "at", line[p:]) > ValueError: ("Expected ',' or end-of-list in", 'Mezzanine==git+ > https://github.com/stephenmcd/mezzanine@master#egg=mezzanine', 'at', ':// > github.com/stephenmcd/mezzanine@master#egg=mezzanine') > > > Thanks in advance > Federico > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
