Skip to content

Commit

Permalink
Build ipopt with conda
Browse files Browse the repository at this point in the history
  • Loading branch information
whophil committed Jun 6, 2021
1 parent 0c6afb2 commit e23195b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conda.recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail

cd ${SRC_DIR}
${PYTHON} -m pip install . -vv
IPOPT_DIR=${CONDA_PREFIX} ${PYTHON} -m pip install . -vv

cd ${SRC_DIR}/baseclasses
${PYTHON} -m pip install . -vv
4 changes: 3 additions & 1 deletion conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ requirements:
- python
- numpy
- swig
- ipopt
- {{ compiler('c')}}
- {{ compiler('cxx')}}
- {{ compiler('fortran') }}
Expand All @@ -31,6 +32,7 @@ requirements:
run:
- python
- numpy
- ipopt
- sqlitedict >=1.6
- scipy >1.2

Expand All @@ -46,4 +48,4 @@ test:
- parameterized

commands:
- testflo .
- testflo --verbose .
2 changes: 1 addition & 1 deletion pyoptsparse/pyIPOPT/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def configuration(parent_package="", top_path=None):
"pyipoptcore",
FILES,
library_dirs=[IPOPT_LIB],
libraries=["ipopt", "coinmumps", "coinmetis", "dl", "m", "blas", "lapack"],
libraries=["ipopt", "mumps_common_seq", "scotchmetis", "dl", "m", "blas", "lapack"],
extra_link_args=["-Wl,-rpath,%s -L%s" % (IPOPT_LIB, IPOPT_LIB)],
include_dirs=[numpy_include, IPOPT_INC],
)
Expand Down

0 comments on commit e23195b

Please sign in to comment.