miniature-lamp-45970
09/02/2020, 4:59 AMwitty-crayon-22786
09/02/2020, 6:49 PMminiature-lamp-45970
09/02/2020, 9:29 PMwitty-crayon-22786
09/02/2020, 9:30 PMhundreds-father-404
09/03/2020, 6:28 PMgit+<https://github.com/pypa/pipenv.git#egg=pipenv>
# or
git+<https://github.com/pypa/pipenv.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=pipenv>
You use
pipenv@ git+<https://github.com/pypa/pipenv.git>
# or
pipenv@ git+<https://github.com/pypa/pipenv.git@7921be1537eac1e97bc40179a57f0349c2aee67d>
This works today. See https://www.python.org/dev/peps/pep-0440/#direct-references for more guidance.
--
Is this acceptable? It saves a ton of headache for us, such as needing to depdend on another 3rd party requirement and making it easier for us to add support for Poetry and Pipenv.
--
(I’m also looking for higher level tutorials and am going to update the error message for Pants to point users to this alternative)miniature-lamp-45970
09/03/2020, 8:09 PMpip @ file:///3rdparty/torch_cluster-latest%2Bcpu-cp37-cp37m-macosx_10_9_x86_64.whl
Added the above entry to requirements.txt and ended up with the following stack trace pants.base.exceptions.DuplicateNameError: A target already exists at 'BUILD' with name 'pip' and target type 'python_requirement_library'. The 'python_requirement_library' target cannot use the same name.
hundreds-father-404
09/03/2020, 8:12 PMpip
is the name of the dependency. Instead of pip @ file
, you’d want torch_cluster @ file
, or whatever the req is calledminiature-lamp-45970
09/03/2020, 8:12 PMhundreds-father-404
09/03/2020, 8:13 PMpip
in the example for this new error message I’m writing. Maybe we’ll do ansicolors
, which is our go to for docs hehehundreds-father-404
09/03/2020, 8:25 PMminiature-lamp-45970
09/03/2020, 8:29 PMhundreds-father-404
09/03/2020, 8:31 PMminiature-lamp-45970
09/03/2020, 8:36 PMhundreds-father-404
09/03/2020, 8:53 PMwitty-crayon-22786
09/03/2020, 8:53 PMhundreds-father-404
09/03/2020, 9:22 PM