@@ -267,7 +267,7 @@ options_choices = [
267
267
[ 'double' , 'float' ],
268
268
269
269
# [ 'throwerrors', 'exiterrors' ],
270
- [ 'autopython' , 'python23' , 'python24' , 'python25' , 'python26' ,'nopython' ],
270
+ [ 'autopython' , 'python23' , 'python24' , 'python25' , 'python26' ,'python27' , ' nopython' ],
271
271
272
272
[ 'blas' , 'noblas' ],
273
273
[ 'defblas' , 'nolibblas' , 'p3blas' , 'p4blas' , 'athlonblas' , 'pentiumblas' ,
@@ -413,6 +413,10 @@ if not 'nopython' in optionargs:
413
413
getpyver = toolkit .command_output ('python%s -V' % python_version )
414
414
if len (getpyver ) == 1 :
415
415
tokens = getpyver [0 ].split ()
416
+ if len (tokens ) > 3 and tokens [2 ]== "--" and tokens [3 ] == 'EPD' :
417
+ # This is a EPD installation of python
418
+ # Version are like Python 2.7.2 -- EPD 7.1-2 (64-bit)
419
+ tokens = tokens [:2 ]
416
420
if len (tokens ) == 2 :
417
421
foundver = tokens [1 ]
418
422
tokens = foundver .split ('.' )
@@ -809,6 +813,9 @@ pymakeOption( name = 'python25',
809
813
pymakeOption ( name = 'python26' ,
810
814
description = 'the installed version of python is 2.6.X' ,
811
815
cpp_definitions = ['PL_PYTHON_VERSION=260' ] )
816
+ pymakeOption ( name = 'python27' ,
817
+ description = 'the installed version of python is 2.7.X' ,
818
+ cpp_definitions = ['PL_PYTHON_VERSION=270' ] )
812
819
pymakeOption ( name = 'nopython' ,
813
820
description = 'compile w/o python' )
814
821
0 commit comments