Meaning of git statement

0

I was wondering about a git statement which I found in the requirements.txt file of one of my projects.

-e git+https://github.com/facebookresearch/densepose@35e69d110b432704c2183cd6aea531f4f695edbe#egg=Detectron

I don't really understand where this statement is pointing to.

Can someone please explain this to me?

sayamkanwar

Posted 2019-11-03T13:55:24.913

Reputation: 1

You mean where in the sense of which specific Git commit, or do you want to know about pip requirement formats? – slhck – 2019-11-03T13:57:29.653

@slhck I want to specifically know the meaning of the portion after the @ symbol. 35e69d110b432704c2183cd6aea531f4f695edbe#egg=Detectron this part. – sayamkanwar – 2019-11-03T13:59:45.587

1

This isn’t about Git. It’s about requirements.txt.

– Daniel B – 2019-11-03T14:06:30.477

Answers

1

This is pip-specific syntax for "editable" dependencies; it is not understood by git itself.

  • @hash lets you select a specific Git commit (similar to @rev in SVN URLs).

  • #egg=name lets you specify the project name that would otherwise be in requirements.txt (e.g. if a normal dependency was like MyProject==3.0 then the URL would need to have #egg=MyProject).

user1686

Posted 2019-11-03T13:55:24.913

Reputation: 283 655