From 28eadc0e31ca7aea5c679023d1e703856f45c879 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 11 Jul 2013 12:08:49 -0600 Subject: MAINT: Remove outdated version checks. Because Numpy 1.8.0 will no longer supports Python versions < 2.6 we no longer need to check for that and can also remove the code that is specific to those earlier versions. To make this a bit safer, the toplevel setup.py file now contains a check of the Python version number and raises an error when run by an unsupported version. --- numpy/f2py/src/fortranobject.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'numpy/f2py') diff --git a/numpy/f2py/src/fortranobject.h b/numpy/f2py/src/fortranobject.h index 07e810ff9..76a357b5e 100644 --- a/numpy/f2py/src/fortranobject.h +++ b/numpy/f2py/src/fortranobject.h @@ -31,27 +31,6 @@ extern "C" { #define PyNumber_Int PyNumber_Long #endif -#if (PY_VERSION_HEX < 0x02060000) -#define Py_TYPE(o) (((PyObject*)(o))->ob_type) -#define Py_REFCNT(o) (((PyObject*)(o))->ob_refcnt) -#define Py_SIZE(o) (((PyVarObject*)(o))->ob_size) -#endif - - /* -#ifdef F2PY_REPORT_ATEXIT_DISABLE -#undef F2PY_REPORT_ATEXIT -#else - -#ifndef __FreeBSD__ -#ifndef __WIN32__ -#ifndef __APPLE__ -#define F2PY_REPORT_ATEXIT -#endif -#endif -#endif - -#endif - */ #ifdef F2PY_REPORT_ATEXIT #include -- cgit v1.2.1