[Biopython (old issues only) - Feature #3236] (Closed) Make Biopython work in PyPy 1.5

[email protected]
Newsgroups gmane.comp.python.bio.devel
Message-ID <redmine.journal-15294.20160722154441.a0f4b3661ed7d5ed@redmine.open-bio.org>
Issue #3236 has been updated by Peter Cock.

Status changed from In Progress to Closed
% Done changed from 20 to 100

Biopython has been working pretty well on PyPy 2.4 onwards (a combination of some fixes on our side but mostly progress on the PyPy side), closing this issue.

----------------------------------------
Feature #3236: Make Biopython work in PyPy 1.5
https://redmine.open-bio.org/issues/3236#change-15294

* Author: Eric Talevich
* Status: Closed
* Priority: Low
* Assignee: Biopython Dev Mailing List
* Category: 
* Target version: 
* URL: 
----------------------------------------
PyPy is now roughly as production-ready as Jython:
http://morepypy.blogspot.com/2011/04/pypy-15-released-catching-up.html

Let's make Biopython work on PyPy 1.5.

To make the pure-Python core of Biopython work, I did this:

* Download and unpack the pre-compiled Linux tarball from pypy.org
* Copy the header file @marshal.h@ from the CPython 2.X installation into the @pypy-c-.../include/@ directory
* pypy setup.py build; pypy setup.py install
* Delete pypy-c-.../site-packages/Bio/cpairwise2*.so

Benchmarking a script that leans heavily on Bio.pairwise2, I see about a 2x speedup between Pypy 1.5 and CPython 2.6 -- yes, that's with the compiled C extension @cpairwise2@ in the CPython 2.6 installation.

Numpy isn't available on PyPy yet, and it may be some time before it does.

Observations from @pypy setup.py test@:

* test_BioSQL triggers tons of RuntimeWarnings related to sqlite3 functions
* test_BioSQL_SeqIO fails -- attempts to retrieve P01892 instead of Q29899 (?)
* test_Restriction triggers a TypeError, somehow (also causing test_CAPS to err)
* test_Entrez fails with many noisy errors -- looks related to expat, may be just my installation
* importing @Bio.trie@ fails, probably due to a @marshal.h@ issue with compilation


---Files--------------------------------
pypy1.5-setup.diff (1.15 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here and login: http://redmine.open-bio.org

_______________________________________________
Biopython-dev mailing list
[email protected]
http://mailman.open-bio.org/mailman/listinfo/biopython-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.