# HG changeset patch
# User Volker Braun <vbraun@stp.dias.ie>
# Date 1286454326 -3600
# Node ID 930bc3ccf0ecd463ca51ef39449c87a8f6c3a8b1
# Parent 330f63e24306b6afa2e841d215a11c2ad21a7721
Trac #10094: cython expects --cplus command line option to enable the new language features.
diff -r 330f63e24306 -r 930bc3ccf0ec setup.py
a
|
b
|
|
704 | 704 | outfile = f[:-4] |
705 | 705 | if m.language == 'c++': |
706 | 706 | outfile += ".cpp" |
| 707 | cplus = '--cplus' |
707 | 708 | else: |
708 | 709 | outfile += ".c" |
| 710 | cplus = '' |
709 | 711 | |
710 | 712 | # call cython, abort if it failed |
711 | | cmd = "python `which cython` --embed-positions --directive cdivision=True,autotestdict=False -I%s -o %s %s"%(os.getcwd(), outfile, f) |
| 713 | cmd = "python `which cython` %s --embed-positions --directive cdivision=True,autotestdict=False -I%s -o %s %s"%(cplus, os.getcwd(), outfile, f) |
712 | 714 | r = run_command(cmd) |
713 | 715 | if r: |
714 | 716 | return r |