Build Python without build SCIp #4369
-
Hi, But it build SCIP. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Some remarks: afaik
This "might" complicate some things for you iff or-tools does not support this in the build-config (don't know, did not check). (Another topic might be the selection/compilation+patches of the symmetry-breaking backend) Maybe quickly check the CMake as well as SCIP sources in or-tools with this information at hand. Do you have a good reason to bring your own SCIP? |
Beta Was this translation helpful? Give feedback.
-
By default it is not supported, to make a standalone python package we have to ship with SCIP embedded to follow PEP 513.. Here Lines 163 to 164 in f676293 Lines 283 to 287 in f676293 Forced to ON (last param) if expression NOT BUILD_DEPS is false otherwise default to OFF .see: https://cmake.org/cmake/help/latest/module/CMakeDependentOption.html BUT you can still hack this code (OSS is good !) we could replace this code by: if(USE_SCIP)
if(BUILD_DEPS)
option(BUILD_SCIP "Build the SCIP dependency Library" ON)
else()
option(BUILD_SCIP "Build the SCIP dependency Library" OFF)
endif()
message(STATUS "Build SCIP: ${BUILD_SCIP}")
endif() so user still have option to change the default (sound) value.... |
Beta Was this translation helpful? Give feedback.
-
With this modification, I can do exactly what I want. |
Beta Was this translation helpful? Give feedback.
By default it is not supported, to make a standalone python package we have to ship with SCIP embedded to follow PEP 513..
ref: https://peps.python.org/pep-0513/#the-manylinux1-policy
Here
BUILD_DEPS
is forced to ON if anyBUILD_<LANG>
is enable.or-tools/CMakeLists.txt
Lines 163 to 164 in f676293
or-tools/CMakeLists.txt
Lines 283 to 287 in f676293
Forced to
ON
(last param) if …