Ticket #9828: trac_9828-fix_applying_patch_and_more-spkg.patch

File trac_9828-fix_applying_patch_and_more-spkg.patch, 3.0 KB (added by leif, 12 years ago)

SPKG patch. As the name says... (also quotes SAGE_LOCAL; some clean-up) Now with corrected SPKG.txt (getattr).

  • SPKG.txt

    # HG changeset patch
    # User Leif Leonhardy <not.really@online.de>
    # Date 1284656200 -7200
    # Node ID ef15353c71799de6604260b6b60c2ad6821037c9
    # Parent  059d59c788335059fb9e92df5d9e8dfbe6b21505
    #9828 Move 'cd src' to really apply patch; quote SAGE_LOCAL; clean-up.
    
    Use "#!/usr/bin/env bash" instead of "#!/bin/sh" as other packages do.
    
    Also reformat SPKG.txt to 80 columns and add Changelog section.
    
    diff -r 059d59c78833 -r ef15353c7179 SPKG.txt
    a b  
    22
    33== Description ==
    44
    5 Cython is a language that makes writing C extensions for the Python language as easy as Python itself. Cython is based on the well-known Pyrex, but supports more cutting edge functionality and optimizations.
     5Cython is a language that makes writing C extensions for the Python language as
     6easy as Python itself. Cython is based on the well-known Pyrex, but supports
     7more cutting edge functionality and optimizations.
    68
    7 The Cython language is very close to the Python language, but Cython additionally supports calling C functions and declaring C types on variables and class attributes. This allows the compiler to generate very efficient C code from Cython code.
     9The Cython language is very close to the Python language, but Cython additio-
     10nally supports calling C functions and declaring C types on variables and class
     11attributes. This allows the compiler to generate very efficient C code from
     12Cython code.
    813
    9 This makes Cython the ideal language for wrapping for external C libraries, and for fast C modules that speed up the execution of Python code.
     14This makes Cython the ideal language for wrapping for external C libraries, and
     15for fast C modules that speed up the execution of Python code.
    1016
    1117Website: http://www.cython.org/
    1218
     
    2228
    2329== Dependencies ==
    2430 * Python
     31
     32== Changelog ==
     33
     34=== cython-0.13.p0 (Robert Bradshaw, September 16th 2010) ===
     35 * New upstream release.
     36 * Add a patch to speed up __getattr__().
     37 * Minor clean-up in spkg-install.
     38 * SPKG.txt reformatted to 80 columns; Changelog section added.
     39
     40=== cython-0.12.1 ===
     41
     42See Mercurial repository for a few changes previously made; most of the rest is
     43"lost".
     44
  • spkg-install

    diff -r 059d59c78833 -r ef15353c7179 spkg-install
    a b  
    1 #!/bin/sh
     1#!/usr/bin/env bash
    22
    33if [ "$SAGE_LOCAL" = "" ]; then
    4    echo "SAGE_LOCAL undefined ... exiting";
    5    echo "Maybe run 'sage -sh'?"
    6    exit 1
     4    echo "SAGE_LOCAL undefined ... exiting"
     5    echo "Maybe run 'sage -sh'?"
     6    exit 1
    77fi
    88
    9 cd src/
    10 
    119# remove old copies
    1210
    13 rm -rf $SAGE_LOCAL/lib/python2.*/site-packages/Cython*
    14 rm -rf $SAGE_LOCAL/lib/python/site-packages/Cython*
     11rm -rf "$SAGE_LOCAL"/lib/python2.*/site-packages/Cython*
     12rm -rf "$SAGE_LOCAL"/lib/python/site-packages/Cython*
    1513
    1614# __getattr__ speed bugfix
    1715cp patches/Code.py src/Cython/Compiler/Code.py
    1816
     17cd src/
     18
    1919python setup.py install
    2020
    2121if [ $? -ne 0 ]; then