SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
29
math/lpsolve/python/patches/patch-setup_py
Normal file
29
math/lpsolve/python/patches/patch-setup_py
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- setup.py.orig Mon Feb 1 20:57:56 2010
|
||||
+++ setup.py Fri May 11 15:02:36 2012
|
||||
@@ -3,15 +3,8 @@ from os import getenv
|
||||
import sys
|
||||
import os
|
||||
p = sys.prefix
|
||||
-NUMPYPATH = '.'
|
||||
-if os.path.isdir(p + '/include/numpy'):
|
||||
- NUMPY = 'NUMPY'
|
||||
-elif os.path.isdir(p + '/Lib/site-packages/numpy/core/include/numpy'):
|
||||
- NUMPY = 'NUMPY'
|
||||
- NUMPYPATH = p + '/Lib/site-packages/numpy/core/include'
|
||||
-else:
|
||||
- NUMPY = 'NONUMPY'
|
||||
-print 'numpy: ' + NUMPY
|
||||
+NUMPYPATH = '${NUMPY_PATH}'
|
||||
+NUMPY='NUMPY'
|
||||
windir = getenv('windir')
|
||||
if windir == None:
|
||||
WIN32 = 'NOWIN32'
|
||||
@@ -29,7 +22,7 @@ setup (name = "lpsolve55",
|
||||
ext_modules = [Extension("lpsolve55",
|
||||
["lpsolve.c", "hash.c", "pythonmod.c"],
|
||||
define_macros=[('PYTHON', '1'), (WIN32, '1'), ('NODEBUG', '1'), ('DINLINE', 'static'), (NUMPY, '1'), ('_CRT_SECURE_NO_WARNINGS', '1')],
|
||||
- include_dirs=['../..', NUMPYPATH],
|
||||
+ include_dirs=['../..', NUMPYPATH, '${LOCALBASE}/include/lpsolve'],
|
||||
library_dirs=[LPSOLVE55],
|
||||
libraries = ["lpsolve55"])
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue