Ticket #9828: 2_no_autodict.patch

File 2_no_autodict.patch, 803 bytes (added by robertwb, 12 years ago)
  • setup.py

    # HG changeset patch
    # User Craig Citro <craigcitro@gmail.com>
    # Date 1275088875 25200
    # Node ID 3bb831bff148bf8e13a1ceaf3ca3e017c638d689
    # Parent  9cf98092ffa5a54860cd6a42255d23119db57e8a
    Turn off autodict generation for Cython files.
    
    diff -r 9cf98092ffa5 -r 3bb831bff148 setup.py
    a b  
    677677            outfile += ".c"
    678678
    679679        # call cython, abort if it failed
    680         cmd = "python `which cython` --embed-positions --directive cdivision=True -I%s -o %s %s"%(os.getcwd(), outfile, f)
     680        cmd = "python `which cython` --embed-positions --directive cdivision=True,autotestdict=False -I%s -o %s %s"%(os.getcwd(), outfile, f)
    681681        r = run_command(cmd)
    682682        if r:
    683683            return r