[Distutils] Limitations of setup_requires

Phillip J. Eby pje at telecommunity.com
Mon Oct 2 02:44:57 CEST 2006

At 04:47 PM 9/29/2006 -0700, Joshua Boverhof wrote:
>I included the "ZSI" package in "setup_requires" and "install_requires", 
>but it isn't retrieved/installed before I use it via 
>Here is what I'm doing:
>class PGDistribution(_Distribution):
>     """Indirection so that setuptools grabs "setup_requires" dependencies
>     before calling "_make_generated_package()"
>     """
>     def finalize_options (self):
>         if _make_generated_package() is True:
>              self.packages = find_packages()
>         _Distribution.finalize_options(self)

I don't understand what the purpose of this code is.  find_packages() is 
not going to give you a different result by being called here, than if you 
just called it in setup().

More information about the Distutils-SIG mailing list