summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-22 07:40:50 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-22 07:40:50 +0000
commit4eeb659b1ec21647c448d50803cc51a7a351666b (patch)
treea3402d79efe1e37c456530077550099be4c78f74 /numpy/core/setup.py
parentd297382e0024174d463d7b03ef57525bf687104c (diff)
downloadnumpy-4eeb659b1ec21647c448d50803cc51a7a351666b.tar.gz
Fix 2.3 compatibility.
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index c2f0e39e0..78611b5e1 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -1,6 +1,7 @@
import imp
import os
+import sys
from os.path import join
from glob import glob
from distutils.dep_util import newer,newer_group
@@ -71,7 +72,12 @@ def configuration(parent_package='',top_path=None):
moredefs.append('HAVE_ISNAN')
if config_cmd.check_func('isinf', **kws_args):
moredefs.append('HAVE_ISINF')
-
+
+ if sys.version[:3] < '2.4':
+ kws_args['headers'].append('stdlib.h')
+ if config_cmd.check_func('strtod', **kws_args):
+ moredefs.append(('PyOS_ascii_strtod', 'strtod'))
+
if moredefs:
target_f = open(target,'a')
for d in moredefs: