We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf4f1a3 commit 97704a4Copy full SHA for 97704a4
setup.py
@@ -39,13 +39,16 @@ def set_vcpkg_environment_variables():
39
40
# ---------- find Python CasADi's include dirs (for Linux and macOS) -------------------
41
42
+
43
def get_casadi_python_include_dir():
44
import casadi
45
46
casadi_path = Path(casadi.__file__).parent
47
include_dir = casadi_path / "include"
48
assert include_dir.exists(), f"CasADi include directory not found at {include_dir}"
49
return str(include_dir)
50
51
52
if USE_PYTHON_CASADI:
53
casadi_include = get_casadi_python_include_dir()
54
INCLUDE_DIRS.append(casadi_include)
0 commit comments