Changeset 37261


Ignore:
Timestamp:
2023-02-03T16:19:25+13:00 (15 months ago)
Author:
davidb
Message:

Script updated to work with self-contained Python3 extension

Location:
gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare/05-PARSE-ADDITIONAL-METADATA-FROM-WIKIPEDIA.sh

    r35963 r37261  
    1313prep_dir=errata-categories
    1414
    15 if [ ! -d ./$my_python ] ; then
     15if [ "x$PYTHON3_HOME" = "x" ] && [ ! -d "./$my_python" ] ; then
    1616    echo "" 1>&2
    1717    echo "Failed to find: ./$my_python" 1>&2
     
    3232exit_status=0
    3333
    34 source  ./$my_python/bin/activate
     34if [ "x$PYTHON3_HOME" = "x" ] ; then   
     35    source  ./$my_python/bin/activate
     36fi
    3537
    3638$prep_dir/esc-wikipedia-download-and-process-votes.py \
     
    7375
    7476
    75 deactivate
     77if [ "x$PYTHON3_HOME" = "x" ] ; then
     78    deactivate
     79fi
    7680
    7781if [ $exit_status != 0 ] ; then
  • gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare/07b-GENERATE-ESSENTIA-FEATURES-DATA.sh

    r36014 r37261  
    3030echo ""
    3131
    32 if [ ! -d ./$my_python ] ; then
     32if [ "x$PYTHON3_HOME" = "x" ] && [ ! -d "./$my_python" ] ; then
    3333    echo "" 1>&2
    3434    echo "Failed to find: ./$my_python" 1>&2
     
    4040fi
    4141
    42 source  ./$my_python/bin/activate
    43 
     42if [ "x$PYTHON3_HOME" = "x" ] ; then
     43    source  ./$my_python/bin/activate
     44fi
    4445
    4546echo ""
     
    6465    echo "! Error enountered running git clone followed by pip3 install -r requirements.txt" 1>&2
    6566    echo "!!!!" 1>&2
    66    
    67     deactivate
     67
     68    if [ "x$PYTHON3_HOME" = "x" ] ; then       
     69        deactivate
     70    fi
    6871    exit 1
    6972    fi
     
    149152
    150153
    151 
    152 
     154if [ "x$PYTHON3_HOME" = "x" ] ; then       
     155    deactivate
     156fi
Note: See TracChangeset for help on using the changeset viewer.