#!/bin/bash
#
# Trigger vars and find information
#
# $Id$
#
######################################################################

######################################################################
#
# Set variables whose change should not trigger a rebuild or will
# by value change trigger a rebuild, as change of this file will not
# trigger a rebuild.
# E.g: version, builds, deps, auxdata, paths, builds of other packages
#
######################################################################

setPythonTriggerVars() {
  PYTHON_BLDRVERSION_STD=2.7.3
  PYTHON_BLDRVERSION_EXP=2.7.6
  computeVersion Python
# Export so available to setinstald.sh
  export PYTHON_BLDRVERSION
# Needed?
  # PYTHON_MAJMIN=`echo $PYTHON_BLDRVERSION | sed 's/\([0-9]*\.[0-9]*\).*/\1/'`
  PYTHON_BUILDS=${PYTHON_BUILDS:-"$FORPYTHON_BUILD"}
  PYTHON_BUILD=$FORPYTHON_BUILD
  PYTHON_DEPS=chrpath,sqlite,bzip2
}
setPythonTriggerVars

######################################################################
#
# Find python
#
######################################################################

findPython() {
  source $BILDER_DIR/bilderpy.sh
  addtopathvar PATH $CONTRIB_DIR/python/bin
  if test `uname` = Linux; then
    addtopathvar LD_LIBRARY_PATH $CONTRIB_DIR/python/lib
  fi
}


#!/bin/bash
#
# Trigger vars and find information
#
# $Id$
#
######################################################################

######################################################################
#
# Set variables whose change should not trigger a rebuild or will
# by value change trigger a rebuild, as change of this file will not
# trigger a rebuild.
# E.g: version, builds, deps, auxdata, paths, builds of other packages
#
######################################################################

setPythonTriggerVars() {
  PYTHON_BLDRVERSION_STD=2.7.3
  PYTHON_BLDRVERSION_EXP=2.7.6
  computeVersion Python
# Export so available to setinstald.sh
  export PYTHON_BLDRVERSION
# Needed?
  # PYTHON_MAJMIN=`echo $PYTHON_BLDRVERSION | sed 's/\([0-9]*\.[0-9]*\).*/\1/'`
  if [[ `uname` =~ Linux ]]; then
    PYTHON_BUILDS=${PYTHON_BUILDS:-"$FORPYTHON_BUILD"}
  fi
  PYTHON_BUILD=$FORPYTHON_BUILD
  PYTHON_DEPS=chrpath,sqlite,bzip2
}
setPythonTriggerVars

######################################################################
#
# Find python
#
######################################################################

findPython() {
  source $BILDER_DIR/bilderpy.sh
  addtopathvar PATH $CONTRIB_DIR/python/bin
  if test `uname` = Linux; then
    addtopathvar LD_LIBRARY_PATH $CONTRIB_DIR/python/lib
  fi
}


Build python on Linux only.
Build python on Linux only.

git-svn-id: 06aac1f7aa6783202dd435920b98a457d633d0b0@1441 a9e16012-fd73-49ee-95cb-036de7809213
