[GRASS-dev] SWIG-Python lacking from install sequence in main Makefile

Glynn Clements glynn at gclements.plus.com
Sun Jul 19 23:53:59 EDT 2009


Hamish wrote:

> so (IIUC) swig 1.3.29 requires python >= 2.5 ?

FWIW, the wrappers generated by SWIG 1.3.36 have:

	/* Py_ssize_t for old Pythons */
	/* This code is as recommended by: */
	/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
	#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
	typedef int Py_ssize_t;
	# define PY_SSIZE_T_MAX INT_MAX
	# define PY_SSIZE_T_MIN INT_MIN
	#endif

IOW, you should just need a newer version of SWIG.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list