chiark / gitweb /
fixes to windows setup.py; thanks to Robert G for the patch
authorstevenj <stevenj@alum.mit.edu>
Tue, 22 Mar 2011 20:13:00 +0000 (16:13 -0400)
committerstevenj <stevenj@alum.mit.edu>
Tue, 22 Mar 2011 20:13:00 +0000 (16:13 -0400)
darcs-hash:20110322201300-c8de0-7caeb9ab8e893d3c8ec0be13c96959be1234c8d0.gz

BUILD-MINGW.sh

index 11712eaf44adca119b60900a63fec78d94b446f5..142ee57165f22bcc6b5a243029d6e77b1957db68 100755 (executable)
@@ -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