tags 632234 + patch thanks The attached patch adds support for Python 2.7 to the build system. After applying the patch and regenerating configure and Makefile, extension modules for Python 2.7 will be built (if it's available).
Regards, -- Sebastian Ramacher
+++ pypoker-eval-138.0/Makefile.am
@@ -32,6 +32,14 @@
python_PYTHON = \
pokereval.py
+if PYTHON_2_7
+py2_7exec_LTLIBRARIES = _pokereval_2_7.la
+_pokereval_2_7_la_SOURCES = pypokereval.c
+_pokereval_2_7_la_LDFLAGS = -module -no-undefined -version-info 1:0:0
+_pokereval_2_7_la_LIBADD = ${PYTHON2_7_LIBS} ${POKER_EVAL_LIBS}
+_pokereval_2_7_la_CFLAGS = ${PYTHON2_7_CFLAGS} ${POKER_EVAL_CFLAGS} -DPYTHON_VERSION=\"2_7\" -D'VERSION_NAME(w)=w\#\#2_7'
+endif
+
if PYTHON_2_6
py2_6exec_LTLIBRARIES = _pokereval_2_6.la
_pokereval_2_6_la_SOURCES = pypokereval.c
only in patch2:
unchanged:
--- pypoker-eval-138.0.orig/config/ccpython.m4
+++ pypoker-eval-138.0/config/ccpython.m4
@@ -110,7 +110,7 @@
AC_DEFUN([ALL_CC_PYTHON],
[
-m4_define([_AM_PYTHON_INTERPRETER_LIST], [python2.6 python2.5 python2.4 python2.3])
+m4_define([_AM_PYTHON_INTERPRETER_LIST], [python2.7 python2.6 python2.5 python2.4 python2.3])
PYTHONS=''
found_one=''
_ONE_CC_PYTHON([=2.3], [2_3])
@@ -124,6 +124,9 @@
unset PYTHON
_ONE_CC_PYTHON([=2.6], [2_6])
if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
+unset PYTHON
+_ONE_CC_PYTHON([=2.7], [2_7])
+if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
PYTHON=$found_one
if ! test "$found_one" ; then
AC_MSG_ERROR([No python development environments found])
only in patch2:
--
+++ pypoker-eval-138.0/config/python.m4
@@ -42,7 +42,7 @@
dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
dnl in 1.5.
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
- [python python2 python2.5 python2.6 python2.4 python2.3 python2.2 dnl
+ [python python2 python2.7 python2.5 python2.6 python2.4 python2.3 python2.2 dnl
python2.1 python2.0 python1.6 python1.5])
m4_if([$1],[],[
signature.asc
Description: OpenPGP digital signature

