Re: [Distutils] Using code from a dependency in setup.py

2013-05-29 Thread George V. Reilly
Actually, Bread's setup is fine; it's not doing anything interesting. It's Jam's setup that's the problem. Robert's mention of `setup_requires` led me to http://stackoverflow.com/a/12061891/6364, which gave me the hint I needed: create a separate `Distribution` object before calling `setup` which

Re: [Distutils] Using code from a dependency in setup.py

2013-05-29 Thread zooko
Here is my explanation of why it can be problematic if you import Bread in Bread's setup.py: https://bugs.launchpad.net/nevow/+bug/812537/comments/3 If you do want to import dependencies of Bread in Bread's setup.py, and if your build tool (e.g. setuptools) supports it, then you could add the dep

Re: [Distutils] Using code from a dependency in setup.py

2013-05-29 Thread Robert Collins
On 30 May 2013 07:33, George V. Reilly wrote: > Can this be done with Distutils / setuptools / Distribute? I believe that setup_requires can do what you want, in principle - AIUI that describes what modules are needed to run setup correctly : of course you have to bootstrap manually - but insta

[Distutils] Using code from a dependency in setup.py

2013-05-29 Thread George V. Reilly
I have a little web framework, let's call it Bread, which is used to build applications like Jam, Marmalade, PeanutButter, and other toppings. Bread both *builds* and *serves* these applications. I'm trying to figure out how to make the applications' `setup.py`s work, given the following requireme