click : 'native'
cmake : 'native'
cppunit : 'native'
- cminpack: '1.3.6'
+ cminpack: 'native'
cycler : 'native'
Cython : 'native'
dateutil : 'native'
'PYHELLO'
'EFICAS'
'EFICAS_TOOLS'
- 'PY2CPP'
- 'ADAO'
- 'ADAO_INTERFACE'
+ 'PY2CPP'
+ 'ADAO'
+ 'ADAO_INTERFACE'
'PARAVISADDONS'
'CEATESTBASE' : {tag: 'SalomeV9'}
}
'PRODUCTS.qt.default.system_info.rpm_dev' : ["qt5-qtbase-devel"]
}
{
- # PyFMI not available as native package
- 'PRODUCTS.PyFMI.default.properties.pip' : "no"
+ __condition__ : "VARS.dist in ['DB10', 'UB20.04']"
+ 'PRODUCTS.PyFMI.version_2_5.properties.pip' : "no"
+ 'PRODUCTS.PyFMI.version_2_5.compil_script' : "PyFMI-2.5.sh"
}
]
pip : "yes"
}
}
+
+version_2_5 :
+{
+ properties:
+ {
+ incremental : "yes"
+ pip : "yes"
+ }
+}
cmake_options : " -DUSE_BLAS=ON -DUSE_FPIC=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_LIBDIR:STRING=lib "
compil_script : $name + $VARS.scriptExtension
get_source : "archive"
+ system_info :
+ {
+ rpm : ['cminpack']
+ rpm_dev : []
+ apt : ['libcminpack1']
+ apt_dev : ['libcminpack-dev']
+ }
environ :
{
env_script : $name + ".py"
--- /dev/null
+#!/bin/bash
+
+#!/bin/bash
+
+echo "##########################################################################"
+echo "PyFMI " $VERSION
+echo "##########################################################################"
+
+echo "*** build in SOURCE directory"
+
+
+cd $BUILD_DIR
+cp -R $SOURCE_DIR/* .
+
+rm -f $BUILD_DIR/src/pyfmi/*.c
+mkdir -p $PRODUCT_INSTALL/lib/python${PYTHON_VERSION:0:3}/site-packages
+export PATH=$(pwd)/bin:$PATH
+export PYTHONPATH=$(pwd):$PYTHONPATH
+export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION:0:3}/site-packages:$PYTHONPATH
+
+echo
+echo "*** build with $PYTHONBIN"
+$PYTHONBIN setup.py build
+if [ $? -ne 0 ]
+then
+ echo "ERROR on build"
+ exit 2
+fi
+
+echo
+echo "*** install with $PYTHONBIN"
+$PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL --fmil-home=$PRODUCT_INSTALL
+if [ $? -ne 0 ]
+then
+ echo "ERROR on install"
+ exit 3
+fi
+
+echo
+echo "########## END"
CMAKE_OPTIONS+=" -DHDF5_hdf5_hl_LIBRARY_RELEASE=${HDF5_ROOT_DIR}/lib/libhdf5_hl.so"
CMAKE_OPTIONS+=" -DHDF5_HL_LIBRARY=${HDF5_ROOT_DIR}/lib/libhdf5_hl.so"
CMAKE_OPTIONS+=" -DHDF5_C_INCLUDE_DIR=${HDF5_ROOT_DIR}/include"
+
# CMINPACK
-CMAKE_OPTIONS+=" -DCMINPACK_ROOT_DIR=${CMINPACK_ROOT_DIR}"
-CMAKE_OPTIONS+=" -DCMINPACK_INCLUDE_DIR=${CMINPACK_ROOT_DIR}/include/cminpack-1"
-CMAKE_OPTIONS+=" -DCMINPACK_LIBRARY=$CMINPACK_ROOT_DIR/lib/libcminpack_s.a"
+if [ "${CMINPACK_ROOT_DIR}" != "/usr" ]
+then
+ CMAKE_OPTIONS+=" -DCMINPACK_ROOT_DIR=${CMINPACK_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DCMINPACK_INCLUDE_DIR=${CMINPACK_ROOT_DIR}/include/cminpack-1"
+ CMAKE_OPTIONS+=" -DCMINPACK_LIBRARY=$CMINPACK_ROOT_DIR/lib/libcminpack_s.a"
+else
+ CMAKE_OPTIONS+=" -DCMINPACK_ROOT_DIR=${CMINPACK_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DCMINPACK_INCLUDE_DIR=${CMINPACK_ROOT_DIR}/include/cminpack-1"
+fi
# Blas/Lapack
-CMAKE_OPTIONS+=" -DLAPACK_DIR=${LAPACK_ROOT_DIR}/lib/cmake/lapack-3.8.0"
-CMAKE_OPTIONS+=" -DCBLAS_DIR=${LAPACK_ROOT_DIR}/lib/cmake/cblas-3.8.0"
-CMAKE_OPTIONS+=" -DCBLAS_LIBRARIES=$LAPACK_ROOT_DIR/lib/libcblas.so"
-
-### libxml2 settings
+if [ "${CMINPACK_ROOT_DIR}" != "/usr" ]
+then
+ CMAKE_OPTIONS+=" -DLAPACK_DIR=${LAPACK_ROOT_DIR}/lib/cmake/lapack-3.8.0"
+ CMAKE_OPTIONS+=" -DCBLAS_DIR=${LAPACK_ROOT_DIR}/lib/cmake/cblas-3.8.0"
+ CMAKE_OPTIONS+=" -DCBLAS_LIBRARIES=$LAPACK_ROOT_DIR/lib/libcblas.so"
+fi
+ ### libxml2 settings
if [ -n "$LIBXML2_ROOT_DIR" ]
then
# with a native libxml2, do not use these options
do
echo
echo "*** C O M P O N E N T : $k-${OTP[$k]} "
+
cd $BUILD_DIR
mkdir ${BUILD_DIR}/$k
cd ${BUILD_DIR}/$k
def set_env(env, prereq_dir, version):
env.set('PYFMI_ROOT_DIR', prereq_dir)
-
+ pyver = 'python' + env.get('PYTHON_VERSION')
+ env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
def set_nativ_env(env):
pass
env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib'))
def set_nativ_env(env):
+ env.set('CMINPACK_ROOT_DIR', '/usr')
pass