[Biopython] Third party library
Brad Chapman
chapmanb at 50mail.com
Sun Sep 19 10:44:40 UTC 2010
Dragoslav;
> Did anybody used biopython as third part library, like for example in python
> web project ?
Yes, absolutely. Biopython doesn't behave any different than other
Python third party libraries, so there wouldn't be any special
instructions outside the documentation for the library you are
using.
> I ask this because probably you can not expect to find or install biopython
> in provider server environment.
It's tough to answer this generally without knowing what framework
you are planning to use. For an example, Google App Engine has a
restricted environment where only pure Python libraries work. As an
install procedure you can most simply do:
python setup.py build
and then copy the libraries from build/lib.your_platform to the
site-libraries location in your application.
More formally, virtualenv is also very useful for building an isolated
Python environment with only the libraries for a project:
http://pypi.python.org/pypi/virtualenv
> For example, after installing biopython in windows environment, you can see
> that biopython is
> installed inside python 2.6 installation:
>
> C:\Python26\Lib\site-packages\Bio
> C:\Python26\Lib\site-packages\BioSQL
> C:\Python26\Lib\site-packages\numpy
>
> So can you copy these folders to, for example, \Lib\ folder of web project,
> and reference them somehow from code ?
Sure, that all seems fine but it's hard to offer specific advise
without knowing exactly what you are doing. The best place for
questions is probably in the community of the web framework you are
using. Everything that applies to other third party libraries will
apply to Biopython.
Hope this helps,
Brad
More information about the Biopython
mailing list