From: stevenj Date: Tue, 22 Mar 2011 20:13:00 +0000 (-0400) Subject: fixes to windows setup.py; thanks to Robert G for the patch X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=12cd6d78b64c216bb78dfc0a50c44bc16cf170ed;p=nlopt.git fixes to windows setup.py; thanks to Robert G for the patch darcs-hash:20110322201300-c8de0-7caeb9ab8e893d3c8ec0be13c96959be1234c8d0.gz --- diff --git a/BUILD-MINGW.sh b/BUILD-MINGW.sh index 11712ea..142ee57 100755 --- a/BUILD-MINGW.sh +++ b/BUILD-MINGW.sh @@ -56,12 +56,14 @@ nlopt_module = Extension('_nlopt', sources=['nlopt-python.cpp'], libraries=['libnlopt-0'], ) +import numpy setup (name = 'nlopt', version = '${nlopt_vers}', author = "Steven G. Johnson", description = """NLopt nonlinear-optimization library""", ext_modules = [nlopt_module], py_modules = ["nlopt"], + include_dirs = ['.', numpy.get_include()], ) EOF