Changeset 10782:5bcd08f8d575 in orange


Ignore:
Timestamp:
04/11/12 21:15:22 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
2a7fe1765a1e97b2cfc4758a87872340a9fa25bc
Message:

Build orangeqt for macosx bundle.

Location:
install-scripts/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • install-scripts/mac/bundle-build-hg.sh

    r10504 r10782  
    1 #!/bin/bash -e 
     1#!/bin/bash -ev 
    22# 
    33# Build the orange Mac OSX bundle 
     
    3838echo "===============================" 
    3939./bundle-inject-hg.sh https://bitbucket.org/biolab/orange orange $REVISION $REPOS_DIR ${TMP_BUNDLE_DIR}/Orange.app 
     40 
     41echo "Specifically building orangeqt" 
     42CUR_DIR=`pwd` 
     43cd $REPOS_DIR/orange/source/orangeqt 
     44echo "Fixing sip/pyqt configuration" 
     45 
     46APP=${TMP_BUNDLE_DIR}/Orange.app 
     47APP_ESCAPED=`echo ${TMP_BUNDLE_DIR}/Orange.app | sed s/'\/'/'\\\\\/'/g` 
     48sed -i.bak "s/Users.*Orange.app/$APP_ESCAPED/g"  $APP/Contents/Frameworks/Python.framework/Versions/$PY_VER/lib/python$PY_VER/site-packages/PyQt4/pyqtconfig.py 
     49sed -i.bak "s/Users.*Orange.app/$APP_ESCAPED/g"  $APP/Contents/Frameworks/Python.framework/Versions/$PY_VER/lib/python$PY_VER/site-packages/sipconfig.py 
     50export PATH=$APP/Contents/Resources/Qt4/bin:$PATH 
     51$PYTHON setup.py install 
     52cd $CUR_DIR 
    4053 
    4154echo "Checkouting and building bioinformatics addon" 
  • install-scripts/mac/bundle-inject-hg.sh

    r10486 r10782  
    2626CLONE_FULLPATH=${WORK_DIR}/${CLONE_NAME} 
    2727 
    28 # Path to the local archived source. This is where the building  
    29 # will actually take place to prevent the polution of the repo 
    30 CLONE_ARCHIVE_NAME=${CLONE_NAME}_archive 
    31 CLONE_ARCHIVE_FULLPATH=${WORK_DIR}/${CLONE_ARCHIVE_NAME} 
    32   
    33  
    3428if [ ! -e $CLONE_FULLPATH ]; then 
    3529    echo "Cloning $REPO to $CLONE_FULLPATH" 
     
    4539fi 
    4640 
    47 # Remove old archive if it exists 
    48 if [ -e $CLONE_ARCHIVE_FULLPATH ]; then 
    49     echo "Removing old archive at $CLONE_ARCHIVE_FULLPATH" 
    50     rm -rf $CLONE_ARCHIVE_FULLPATH 
    51 fi 
    52  
    53 # Create an archive 
    54 echo "Creating archive $CLONE_ARCHIVE_FULLPATH" 
    55  
    56 hg clone -r $REVISION $CLONE_FULLPATH $CLONE_ARCHIVE_FULLPATH  
    57  
    58 cd $CLONE_ARCHIVE_FULLPATH 
     41cd $CLONE_FULLPATH 
    5942 
    6043# Run installation 
     
    6447# Clean up the archive 
    6548cd $WORK_DIR 
    66 echo "Cleaning up the archive at $CLONE_ARCHIVE_FULLPATH" 
    67 rm -rf $CLONE_ARCHIVE_FULLPATH 
    6849 
    6950true 
Note: See TracChangeset for help on using the changeset viewer.