summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 6 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index db62a22..c5a1d1a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -41,7 +41,11 @@ if get_platform() == "unsupported":
exit(1)
# environment
-env = Environment(ENV=os.environ)
+if get_platform() == 'win32':
+ # can only build with mingw on windows
+ env = Environment(ENV=os.environ, tools=['mingw'])
+else:
+ env = Environment(ENV=os.environ)
# set default installation directories
default_install_dir = ""
@@ -128,7 +132,7 @@ try:
except AttributeError:
numpy_include = numpy.get_numpy_include()
except ImportError:
- print "Numpy was not found. Cannot build simpl.\n"
+ print "Numpy was not found. Cannot build simpl."
exit(1)
env.Append(CPPPATH = numpy_include)