[Distutils] Python module for use in ‘setup.py’ but not to install

Nick Coghlan ncoghlan at gmail.com
Sun Feb 1 01:11:49 CET 2015

On 1 February 2015 at 06:19, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 01/29/2015 08:58 PM, Ben Finney wrote:
>> Ethan Furman writes:
>>> However, I feel that requiring a dependency simply for the
>>> installation of the main package (the main package doesn't actually
>>> use this install-dependency, correct?) is heavy-handed and should be
>>> avoided.
>> It is ideally a build-time dependency and not an install-time
>> dependency, but I'm having a difficult time figuring out how to
>> distinguish those so Setuptools will pay attention.
> Ah, so it's needed with the sdist command and not the install command?  Yeah, you definitely have my sympathies with
> that one.  Too bad there's no easy way to specify behavior based on the command used... (hopefully someone will now tell
> how I am wrong about that ;) .

You're right, which is why PEP 426 has a more fine-grained dependency
specification model (separating runtime, build, test and development

Other things are higher on the todo list right now than pushing that
forward, but we'll get there eventually.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Distutils-SIG mailing list