From 2f3f1a8ef977fd04fc40d12ffd05903eb88c8635 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Sat, 26 Jan 2008 06:53:45 +0000 Subject: Import numpy.distutils before distutils, to let numpy.distutils do its monkey patching correctly --- setupscons.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setupscons.py') diff --git a/setupscons.py b/setupscons.py index 25e9f08c6..802f4f907 100755 --- a/setupscons.py +++ b/setupscons.py @@ -44,6 +44,9 @@ if os.path.exists('MANIFEST'): os.remove('MANIFEST') # a lot more robust than what was previously being used. __builtin__.__NUMPY_SETUP__ = True +# DO NOT REMOVE numpy.distutils IMPORT ! This is necessary for numpy.distutils' +# monkey patching to work. +import numpy.distutils from distutils.errors import DistutilsError try: import numscons -- cgit v1.2.1