[Biopython-dev] NumPy dialog when Biopython installed from automated programs

Brad Chapman chapmanb at 50mail.com
Sun Oct 16 21:29:49 EDT 2011


Connor;
Thanks for the idea on the auto-install of setuptools/distribute. I'm
open to this or sticking with the warning, whichever everyone
prefers. Traditionally the setup has tried to be lightweight so you
could install Biopython without anything else, but having distribute
installed is pretty useful so it might be nice to encourage this.

Brad

> Sorry to jump in. Regarding the install_requires warnings:
> 
> If you're interested, you can include the distribute_setup.py file
> from http://python-distribute.org/distribute_setup.py in BioPython,
> and add a short conditional import:
> 
> try:
>     from setuptools import setup, find_packages
> except ImportError:
>     import distribute_setup
>     distribute_setup.use_setuptools()
>     from setuptools import setup, find_packages
> 
> Which will download and install distribute if it isn't available in
> the python installation; the remainder of the setup can assume
> setuptools is available.  Sphinx
> (https://bitbucket.org/birkenfeld/sphinx/src/f1f641602bb2/setup.py)
> and some other projects use this.


More information about the Biopython-dev mailing list