]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #42820: updated configuration files and scripts for compilation on FD32
authorGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 2 Sep 2024 07:32:50 +0000 (09:32 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 2 Sep 2024 07:32:50 +0000 (09:32 +0200)
applications/SALOME-master-native.pyconf
products/breathe.pyconf
products/compil_scripts/breathe-4.11.1.sh [new file with mode: 0755]
products/compil_scripts/breathe-4.26.0.sh [new file with mode: 0755]
products/compil_scripts/breathe-4.35.0.sh [new file with mode: 0755]
products/env_scripts/breathe.py

index 6bf92cb0d7515f0f6ac4461a9e1ad14c4bf1d0cb..cd24912d6a42bb30ba494e06b97a5c7972d8137a 100644 (file)
@@ -371,6 +371,8 @@ __overwrite__ :
         'APPLICATION.products.rich'             : {tag: '13.7.1', base: 'no', section: 'version_13_7_1_no_pip'}
         'APPLICATION.products.meshio'           : {tag: '5.3.5' , base: 'no', section: 'version_5_3_5_no_pip' }
         'APPLICATION.products.h5py'             : {tag: '3.11.0', base: 'no', section: 'version_3_11_0_no_pip'}
+        'APPLICATION.products.breathe'          : {tag: '4.11.1', base: 'no', section: 'version_4_11_1_no_pip'}
+        'APPLICATION.products.exhale'           : {tag: '0.2.4',  base: 'no', section: 'version_0_2_4_no_pip' }
         'APPLICATION.products.YACS'             : {tag: 'master', base: 'no', section: 'version_master_FD32'  }
     }
     {
index 5bfd311372317eb5fce5a127d19320e41f083665..55c902cf190308a76b1469705c16a3a7b10bec47 100644 (file)
@@ -27,3 +27,32 @@ default :
     }
 }
 
+version_4_35_0_no_pip : 
+{
+    compil_script :  'breathe-4.35.0.sh'
+    properties:
+    {
+      incremental : "yes"
+      pip : "no"
+    }  
+}
+
+version_4_26_0_no_pip : 
+{
+    compil_script :  'breathe-4.26.0.sh'
+    properties:
+    {
+      incremental : "yes"
+      pip : "no"
+    }  
+}
+
+version_4_11_1_no_pip : 
+{
+    compil_script :  'breathe-4.11.1.sh'
+    properties:
+    {
+      incremental : "yes"
+      pip : "no"
+    }  
+}
diff --git a/products/compil_scripts/breathe-4.11.1.sh b/products/compil_scripts/breathe-4.11.1.sh
new file mode 100755 (executable)
index 0000000..421fbaf
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/bash                                                                                                                                                                              
+
+echo "##########################################################################"
+echo "breathe" $VERSION
+echo "##########################################################################"
+
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+
+if [ ! -d $PRODUCT_INSTALL ]; then
+    mkdir -p $PRODUCT_INSTALL
+fi
+
+rm -rf $BUILD_DIR
+mkdir -p $BUILD_DIR/cache/pip
+cd $BUILD_DIR
+
+WHEELS=('breathe-4.11.1-py2.py3-none-any.whl')
+for WHEEL in "${WHEELS[@]}"; do
+    ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip  $SOURCE_DIR/$WHEEL --no-deps --target=$PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
+    if [ $? -ne 0 ]; then
+        echo "ERROR: could not install $WHEEL"
+        exit 1
+    fi
+done
+ls -ltr $PRODUCT_INSTALL/
+if [ -d ${PRODUCT_INSTALL}/lib64 ]; then
+    mv ${PRODUCT_INSTALL}/lib64 ${PRODUCT_INSTALL}/lib
+elif [ -d ${PRODUCT_INSTALL}/local ]; then
+    mv ${PRODUCT_INSTALL}/local ${PRODUCT_INSTALL}/lib
+fi
+
+echo
+echo "########## END"
diff --git a/products/compil_scripts/breathe-4.26.0.sh b/products/compil_scripts/breathe-4.26.0.sh
new file mode 100755 (executable)
index 0000000..82a5a82
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/bash                                                                                                                                                                              
+
+echo "##########################################################################"
+echo "breathe" $VERSION
+echo "##########################################################################"
+
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+
+if [ ! -d $PRODUCT_INSTALL ]; then
+    mkdir -p $PRODUCT_INSTALL
+fi
+
+rm -rf $BUILD_DIR
+mkdir -p $BUILD_DIR/cache/pip
+cd $BUILD_DIR
+
+WHEELS=('breathe-4.26.0-py3-none-any.whl')
+for WHEEL in "${WHEELS[@]}"; do
+    ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip  $SOURCE_DIR/$WHEEL --no-deps --target=$PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
+    if [ $? -ne 0 ]; then
+        echo "ERROR: could not install $WHEEL"
+        exit 1
+    fi
+done
+ls -ltr $PRODUCT_INSTALL/
+if [ -d ${PRODUCT_INSTALL}/lib64 ]; then
+    mv ${PRODUCT_INSTALL}/lib64 ${PRODUCT_INSTALL}/lib
+elif [ -d ${PRODUCT_INSTALL}/local ]; then
+    mv ${PRODUCT_INSTALL}/local ${PRODUCT_INSTALL}/lib
+fi
+
+echo
+echo "########## END"
diff --git a/products/compil_scripts/breathe-4.35.0.sh b/products/compil_scripts/breathe-4.35.0.sh
new file mode 100755 (executable)
index 0000000..0591e16
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/bash                                                                                                                                                                              
+
+echo "##########################################################################"
+echo "breathe" $VERSION
+echo "##########################################################################"
+
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+
+if [ ! -d $PRODUCT_INSTALL ]; then
+    mkdir -p $PRODUCT_INSTALL
+fi
+
+rm -rf $BUILD_DIR
+mkdir -p $BUILD_DIR/cache/pip
+cd $BUILD_DIR
+
+WHEELS=('breathe-4.35.0-py3-none-any.whl')
+for WHEEL in "${WHEELS[@]}"; do
+    ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip  $SOURCE_DIR/$WHEEL --no-deps --target=$PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
+    if [ $? -ne 0 ]; then
+        echo "ERROR: could not install $WHEEL"
+        exit 1
+    fi
+done
+ls -ltr $PRODUCT_INSTALL/
+if [ -d ${PRODUCT_INSTALL}/lib64 ]; then
+    mv ${PRODUCT_INSTALL}/lib64 ${PRODUCT_INSTALL}/lib
+elif [ -d ${PRODUCT_INSTALL}/local ]; then
+    mv ${PRODUCT_INSTALL}/local ${PRODUCT_INSTALL}/lib
+fi
+
+echo
+echo "########## END"
index 15aebecaf4fc9802ea47e662c710ac92338cbfec..d278098c6b907826226286404c5adea78ee6a028 100644 (file)
@@ -2,9 +2,14 @@
 #-*- coding:utf-8 -*-
 
 import os
+import platform
 
 def set_env(env, prereq_dir, version):
     env.set("BREATHE_ROOT_DIR",prereq_dir)
+    if not platform.system() == "Windows" :
+        pyver = 'python' + env.get('PYTHON_VERSION')
+        env.prepend('PATH', os.path.join(prereq_dir, 'bin'))
+        env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
 
 def set_nativ_env(env):
     pass