update: master, 2to3, cython

30 views
Skip to first unread message

josef...@gmail.com

unread,
Apr 10, 2014, 4:41:24 PM4/10/14
to pystatsmodels
statsmodels master has now a single code base for python 2 and python
3, thanks to Kevin who did a lot of work.

open pull requests will need to be converted so they also run on both
python 2 and 3 without 2to3. the support files are now in
statsmodels.compat (renamed from compatnp), the python 2-3 support
files are now in statsmodels.compat.python.

Also, there has been a change in the cython extensions. If you work
from an inplace build, then the checkout needs to be cleaned of c
files and extensions (setup.py clean), and cython needs to create new
c files and statsmodels extensions need to be rebuild.

Josef

Nathaniel Smith

unread,
Apr 10, 2014, 4:49:26 PM4/10/14
to pystatsmodels
If anyone wants to volunteer to do this work for Patsy too then I'll
definitely accept patches!

(It's on my todo list but there are literally about 100 things ahead
of it so. Just throwin' it out there, you never know...)

-n
--
Nathaniel J. Smith
Postdoctoral researcher - Informatics - University of Edinburgh
http://vorpus.org

josef...@gmail.com

unread,
Apr 10, 2014, 5:28:12 PM4/10/14
to pystatsmodels
On Thu, Apr 10, 2014 at 4:41 PM, <josef...@gmail.com> wrote:
> statsmodels master has now a single code base for python 2 and python
> 3, thanks to Kevin who did a lot of work.

and the bonus:

We should be able to run now all examples with python 3.x out of the box.

They were not included in the run of the 2to3 conversion script, and
needed to be converted separately.

Please report any issues, should you find any. There are no unit tests
for examples or docstrings.

Josef
Reply all
Reply to author
Forward
0 new messages