Ticket #4500: 4500_sage-build.patch

File 4500_sage-build.patch, 1.6 KB (added by GeorgSWeber, 13 years ago)

now tested

  • sage-build

    # HG changeset patch
    # User Georg S. Weber <GeorgSWeberYouKnowWhatGooglemailYouKnowTheRest>
    # Date 1226530038 -3600
    # Node ID 05642c7a64245b55d205082457d067ba0ba7aa40
    # Parent  57bd4b2424195810392e986aaddf31b02846c521
    Fix for trac ticket #4500:
    In the special case of installing a Sage source dist,
    the directory structure under devel/sage/build/sage is missing,
    causing (silent) failure of copying the Cython files without this patch.
    
    diff -r 57bd4b242419 -r 05642c7a6424 sage-build
    a b  
    7373fi
    7474
    7575if [ $DO_BUILD_ALL = 1 ]; then
    76    CUR=`pwd`
    77    cd "$SAGE_ROOT/devel/sage/sage"
    78    echo "*** TOUCHING ALL CYTHON (.pyx) FILES ***"
    79    touch */*.pyx */*/*.pyx */*/*/*.pyx */*/*/*/*.pyx */*/*/*/*/*.pyx */*/*/*/*/*.pyx  */*/*/*/*/*/*.pyx 2> /dev/null
    80    cd ../c_lib
    81    if [ -n "$SAGE_DEBIAN" ]; then
    82      SAGE_LOCAL=/usr scons -Q install
    83    else
    84      scons -Q install
    85    fi
    86    cd ..
     76    CUR=`pwd`
     77    cd "$SAGE_ROOT/devel/sage"
     78   
     79    #trac ticket 4500: if needed, create subdirectory structure under build/sage
     80    #(rely on default directory "build" being used during python build ...)
     81    if [ ! -d "build" ]; then
     82        mkdir build
     83    fi
     84    cp -rf sage build
     85   
     86    cd sage
     87    echo "*** TOUCHING ALL CYTHON (.pyx) FILES ***"
     88    touch */*.pyx */*/*.pyx */*/*/*.pyx */*/*/*/*.pyx */*/*/*/*/*.pyx */*/*/*/*/*.pyx  */*/*/*/*/*/*.pyx 2> /dev/null
     89    cd ../c_lib
     90    if [ -n "$SAGE_DEBIAN" ]; then
     91        SAGE_LOCAL=/usr scons -Q install
     92    else
     93        scons -Q install
     94    fi
     95    cd ..
    8796
    88    cd "$CUR"
     97    cd "$CUR"
    8998fi
    9099
    91100build "sage"