[SciPy-Dev] nested setup.py scripts
Ralf Gommers
ralf.gommers at gmail.com
Fri Aug 29 16:09:17 EDT 2014
On Fri, Aug 29, 2014 at 12:13 PM, Moritz Beber <moritz.beber at gmail.com>
wrote:
> Dear all,
>
> I want to generate a package with a submodule structure similar to what
> numpy and scipy use. (Or do you recommend not doing that?)
>
It's a pretty standard layout for a Python package (assuming it's large in
size and has some compiled code in it that actually needs multiple
setup.py's), it's fine to copy this structure.
> I have read the following pieces of documentation but I'm still unclear
> about how the main setup.py script discovers the nested scripts and gets
> the configuration values from those. Is this documented somewhere or can
> anyone point me to how this is done?
>
In the main setup.py you'll see:
config.add_subpackage('scipy')
And in scipy/setup.py
config.add_subpackage('cluster')
config.add_subpackage('constants')
config.add_subpackage('fftpack')
...<etc>
Cheers,
Ralf
> Thank you in advance,
> Moritz
>
> P.S.: What I've read:
> https://github.com/numpy/numpy/blob/master/doc/DISTUTILS.rst.txt
> http://docs.scipy.org/doc/scipy-dev/reference/hacking.html
> http://docs.scipy.org/doc/scipy/reference/api.html
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20140829/6e35f2ce/attachment.html>
More information about the SciPy-Dev
mailing list