]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Support Scientific Linux 5.1 64bit
authorvsr <vsr@opencascade.com>
Sat, 24 May 2008 14:50:23 +0000 (14:50 +0000)
committervsr <vsr@opencascade.com>
Sat, 24 May 2008 14:50:23 +0000 (14:50 +0000)
config_files/Numeric-23.7.sh

index 75fc5568b2225e0d0bfcc4312cccfb385461bf2a..ba61b79bc5d32d30fe4f8659bc852170bf01f095 100755 (executable)
@@ -121,6 +121,19 @@ if [ $nfound -gt 0 ] ; then
     chmod a+x setup.py
 fi
 
+# patch setup.py for libraries path
+if test `uname -m` = "x86_64" ; then
+    sed -e "s%^library_dirs_list[[:space:]]*=[[:space:]]*\[\(.*\)\]%library_dirs_list = [\1, '/usr/lib64']%g" \
+       -e "s%^libraries_list[[:space:]]*=[[:space:]]*\[\(.*\)'g2c'\]%libraries_list = [\1]%g;s%,[[:space:]]*\]%]%g" \
+       setup.py > _setup.py
+    mv _setup.py setup.py
+else
+    sed -e "s%^library_dirs_list[[:space:]]*=[[:space:]]*\[\(.*\)\]%library_dirs_list = [\1, '/usr/lib']%g"
+       -e "s%^libraries_list[[:space:]]*=[[:space:]]*\[\(.*\)'g2c'\]%libraries_list = [\1]%g;s%,[[:space:]]*\]%]%g" \
+       setup.py > _setup.py
+    mv _setup.py setup.py
+fi
+
 check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR}
 
   if test `uname -m` = "x86_64" ; then