Use of direct references in requirements for setuptools
Hi, Currently, pip supports use of direct references[1][2] in requirement files, which means it includes code that will deal with downloading files over HTTP, or git, etc. setuptools does not have this support, and in order for setuptools to completely implement PEP 508 support, we should come up with a plan what to do when setuptools encounters a requirement that uses a direct reference. The options that I can see are: 1) When egg_info is run, exit with an error saying "Please don't do that" 2) Warn about the requirement, and that we will just depend on it, but drop the direct reference. 3) Add support to setuptools. Personally, I don't like this plan, but perhaps it's easy. 1: For example: testtools@ https://github.com/testing-cabal/testtools 2: It doesn't yet support the format specified by PEP 508, but the functionality exists and works. -- Steve Oh, in case you got covered in that Repulsion Gel, here's some advice the lab boys gave me: [paper rustling] DO NOT get covered in the Repulsion Gel. - Cave Johnson, CEO of Aperture Science
On 28 April 2016 at 10:43, Steve Kowalik <steven@wedontsleep.org> wrote:
Hi,
Currently, pip supports use of direct references[1][2] in requirement files, which means it includes code that will deal with downloading files over HTTP, or git, etc.
setuptools does not have this support, and in order for setuptools to completely implement PEP 508 support, we should come up with a plan what to do when setuptools encounters a requirement that uses a direct reference.
The options that I can see are: 1) When egg_info is run, exit with an error saying "Please don't do that" 2) Warn about the requirement, and that we will just depend on it, but drop the direct reference. 3) Add support to setuptools. Personally, I don't like this plan, but perhaps it's easy.
What about putting the reference into the egg_info, warning that setuptools itself cannot deal with direct references, and for easy-install itself drop back to using the name? I'm thinking we probably do want egg-info to have direct references - so that the use case of a private network of packages all hosted on e.g. github, can work with pip. Donald, WDYT? -Rob
participants (2)
-
Robert Collins
-
Steve Kowalik