From: Gilles DAVID Date: Sat, 26 Oct 2024 11:09:19 +0000 (+0200) Subject: Prise en compte de omnorb, salome_conf et libbatch en mode wheel X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7fb43acdb208437c448ac78bfd585faa6c1b1c17;p=modules%2Fkernel.git Prise en compte de omnorb, salome_conf et libbatch en mode wheel --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b87f6e1a4..eb2406b59 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,11 @@ STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC) # =================== SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files") IF(EXISTS ${CONFIGURATION_ROOT_DIR}) +if(${SKBUILD}) + LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/share/salome_conf/cmake") +else(${SKBUILD}) LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake") +endif(${SKBUILD}) INCLUDE(SalomeMacros NO_POLICY_SCOPE) ELSE() MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !") diff --git a/idl/CMakeLists.txt b/idl/CMakeLists.txt index 2c2eb57de..eaeef588d 100644 --- a/idl/CMakeLists.txt +++ b/idl/CMakeLists.txt @@ -17,7 +17,11 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -INCLUDE(${CONFIGURATION_ROOT_DIR}/cmake/UseOmniORB.cmake) +if(${SKBUILD}) + INCLUDE(${CONFIGURATION_ROOT_DIR}/share/salome_conf/cmake/UseOmniORB.cmake) +else(${SKBUILD}) + INCLUDE(${CONFIGURATION_ROOT_DIR}/cmake/UseOmniORB.cmake) +endif(${SKBUILD}) INCLUDE_DIRECTORIES( ${OMNIORB_INCLUDE_DIR} diff --git a/pyproject.toml b/pyproject.toml index ed8863424..370c79b2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,10 @@ [build-system] -requires = ["scikit-build-core"] +requires = [ + "scikit-build-core", + "omniorb", + "libbatch", + "salome_conf", +] build-backend = "scikit_build_core.build" [project] @@ -9,8 +14,8 @@ readme = {file = "README", content-type = "text/markdown"} requires-python = ">= 3.7" license = {file = "COPYING"} dependencies = [ - # Uncomment when omniorbpy wheel is published - # "omniorbpy", + "omniorb", + "libbatch", "psutil", "numpy", ] @@ -20,15 +25,16 @@ dynamic = ["version"] scipy = ["scipy"] [tool.scikit-build.cmake.define] +# SALOME_CMAKE_DEBUG = "ON" RELOCATABLE = "ON" SALOME_BUILD_TESTS = "ON" SALOME_USE_LIBBATCH = "ON" SALOME_USE_64BIT_IDS = "ON" SALOME_BUILD_DOC = "OFF" -OMNIORBPY_ROOT_DIR = {env="OMNIORBPY_DIR", default="EMPTY"} -LIBBATCH_ROOT_DIR = {env="LIBBATCH_ROOT_DIR", default="EMPTY"} -CMAKE_MODULE_PATH = {env="CONFIGURATION_CMAKE_DIR", default="EMPTY"} +OMNIORBPY_ROOT_DIR = {env="VIRTUAL_ENV", default="EMPTY"} +LIBBATCH_ROOT_DIR = {env="VIRTUAL_ENV", default="EMPTY"} +CONFIGURATION_ROOT_DIR = {env="VIRTUAL_ENV", default="EMPTY"} [tool.scikit-build] cmake.version = ">=3.15" diff --git a/requirements.txt b/requirements.txt index e778fc0aa..0ffc6eaed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,7 @@ ninja>=1.5 scikit-build-core setuptools_scm -build \ No newline at end of file +build +omniorb +salome_conf +libbatch