Users might want to generate code without compiling the python extension. One such case is when OSQP codegen is used within CVXPY codegen, and the CVXPY python extension is used for prototyping.
This PR introduces the argument compile_python_ext for the codegen methods. If True (default), the python extension is compiled. If False, all files related to the python extension are still rendered and the CMake project is still created. This way, advanced users can still compile the python extension by hand, for example by:
cd dir_name/src
python setup.py --quiet build_ext --inplace
Users might want to generate code without compiling the python extension. One such case is when
OSQP
codegen is used withinCVXPY
codegen, and theCVXPY
python extension is used for prototyping.This PR introduces the argument
compile_python_ext
for thecodegen
methods. IfTrue
(default), the python extension is compiled. IfFalse
, all files related to the python extension are still rendered and theCMake
project is still created. This way, advanced users can still compile the python extension by hand, for example by: