-
Notifications
You must be signed in to change notification settings - Fork 364
FAQ: how do I configure a pip source build?
jgillis edited this page May 3, 2023
·
6 revisions
CasADi >=3.6.0 offers pip source pacakages.
pip install --verbose casadi
will provide more insight.
Use FAQ: what cmake build options/build flags should I use? to collect a list of build options, e.g. -DWITH_IPOPT=ON
and -DWITH_BUILD_IPOPT=ON
.
Be sure to meet source build dependencies.
Remove the previous pip build with pip uninstall casadi.
Run pip install --verbose casadi
again in a context with CASADI_SETUP_CMAKE_ARGS
defined as a newline-separated list of build options. e.g. in Linux/Mac:
export CASADI_SETUP_CMAKE_ARGS="-DWITH_BUILD_IPOPT=ON\n-DWITH_IPOPT=ON\n-DWITH_BUILD_REQUIRED=ON"
pip install --verbose casadi
Run pip install --verbose casadi
again in a context with CASADI_SETUP_CMAKE_ARGS
defined as a semicolon-separated list of build options. e.g. in Linux/Mac:
export CASADI_SETUP_CMAKE_ARGS="-DWITH_BUILD_IPOPT=ON;-DWITH_IPOPT=ON;-DWITH_BUILD_REQUIRED=ON"
pip install --verbose casadi