# PREREQUISITES :
alabaster : 'native'
Babel : 'native'
+ beautifulsoup4: 'native'
boost : 'native'
breathe : 'native'
CAS : {tag : 'CR780-SALOME-PATCH', section: 'version_CR780_SALOME_PATCH', base: 'no'}
lapack : 'native'
libxml2 : 'native'
llvm : 'native'
+ lxml : 'native'
markupsafe : 'native'
matplotlib : 'native'
mdurl : 'native'
}
{
__condition__ : "VARS.dist in ['DB12']"
+ 'APPLICATION.rm_products' : ['beautifulsoup4'] # causes crashes
'APPLICATION.products.cmake' : 'native' # TTK requires cmake > 3.21
'APPLICATION.products.cftime' : 'native'
'APPLICATION.products.h5py' : 'native'
'APPLICATION.products.rich' : {tag: '12.6.0', base: 'no', section: 'version_12_6_0_no_pip'}
'APPLICATION.products.meshio' : {tag: '4.3.13', base: 'no', section: 'version_4_3_13_no_pip' }
'APPLICATION.products.h5py' : {tag: '3.0.0', base: 'no', section: 'version_3_0_0_no_pip' }
+ 'APPLICATION.products.exhale' : {tag: '0.2.4', base: 'no', section: 'version_0_2_4_no_pip' }
}
{
__condition__ : "VARS.dist in ['CO9']"
compil_script : 'pip_install' + $VARS.scriptExtension
get_source : "archive"
archive_info : {archive_prefix : "beautifulsoup4"}
+ system_info:
+ {
+ rpm : ["python3-beautifulsoup4"]
+ rpm_dev : []
+ apt : []
+ apt_dev : []
+ }
environ :
{
env_script : "beautifulsoup4.py"
}
- depend : ['Python', 'setuptools', 'soupsieve']
+ depend : ['Python', 'setuptools']
+ opt_depend : ['soupsieve']
source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + "beautifulsoup4"
build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + "beautifulsoup4"
install_dir : 'base'
--- /dev/null
+#!/bin/bash
+
+echo "##########################################################################"
+echo "exhale" $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=('exhale-0.2.4-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"
#-*- coding:utf-8 -*-
import os
+import platform
def set_env(env, prereq_dir, version):
env.set("EXHALE_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
pip : "yes"
}
}
-
+version_0_2_4_no_pip :
+{
+ compil_script : 'exhale-0.2.4.sh'
+ properties:
+ {
+ incremental : "yes"
+ pip : "no"
+ }
+
+}
compil_script : 'pip_install' + $VARS.scriptExtension
get_source : "archive"
archive_info : {archive_prefix : "lxml"}
+ system_info:
+ {
+ rpm : ["python3-lxml"]
+ rpm_dev : []
+ apt : ["python3-lxml"]
+ apt_dev : []
+ }
environ :
{
env_script : "lxml.py"