File 0001-Fix-dependencies-and-pathes.patch of Package python-pyipopt
From 7bf04d3c7779f169688278f7320127d76ac82b4a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Tue, 2 Aug 2022 18:20:36 +0200
Subject: [PATCH] Fix dependencies and pathes
Prefix should be '/usr', IpOpt uses coin-or for its headers.
Use generic blas/lapack instead of coin specific ones.
---
setup.py | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/setup.py b/setup.py
index 5899b61..85ed370 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@
# for my linux distribution was buggy,
# so by the time you read this the bugs have probably been fixed
# and you will want to specify a different directory here.
-IPOPT_DIR = '/usr/local/'
+IPOPT_DIR = '/usr'
import os
from distutils.core import setup
@@ -35,7 +35,7 @@ IPOPT_LIB = get_ipopt_lib()
if IPOPT_LIB is None:
raise Exception('failed to find ipopt lib')
-IPOPT_INC = os.path.join(IPOPT_DIR, 'include/coin/')
+IPOPT_INC = os.path.join(IPOPT_DIR, 'include/coin-or/')
FILES = ['src/callback.c', 'src/pyipoptcoremodule.c']
@@ -48,11 +48,12 @@ pyipopt_extension = Extension(
#extra_link_args=['-Wl,--rpath','-Wl,'+ IPOPT_LIB],
library_dirs=[IPOPT_LIB],
libraries=[
- 'ipopt', 'coinblas',
+ 'ipopt', 'blas',
#'coinhsl',
- 'coinmumps',
- 'coinmetis',
- 'coinlapack','dl','m',
+ 'dmumps_seq',
+ 'mumps_common_seq',
+ 'metis',
+ 'lapack','dl','m',
],
include_dirs=[numpy_include, IPOPT_INC],
)
--
2.37.1