-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, when running: $ cython --create-listing -o build/temp.linux-x86_64-2.7/pybiklib/gldraw_c.c build/temp.linux-x86_64-2.7/pybiklib/gldraw_c.pyx
I get the error: Traceback (most recent call last): File "/usr/bin/cython", line 8, in <module> main(command_line = 1) File "/usr/lib/pymodules/python2.7/Cython/Compiler/Main.py", line 662, in main result = compile(sources, options) File "/usr/lib/pymodules/python2.7/Cython/Compiler/Main.py", line 637, in compile return compile_multiple(source, options) File "/usr/lib/pymodules/python2.7/Cython/Compiler/Main.py", line 609, in compile_multiple result = run_pipeline(source, options) File "/usr/lib/pymodules/python2.7/Cython/Compiler/Main.py", line 472, in run_pipeline context.setup_errors(options, result) File "/usr/lib/pymodules/python2.7/Cython/Compiler/Main.py", line 399, in setup_errors result.listing_file = Utils.replace_suffix(source, ".lis") NameError: global name 'source' is not defined I'm using Cython 0.15.1 . The patch is against git as it seems the code there is same but tested only for 0.15.1. B.C. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQIcBAEBAgAGBQJQUGjJAAoJEEDg0A3D0GN4Yj0QAKYHfo1C7bwl8a2pZi+DPrrE N0T5KAzu3RjYgacw0MpC5hb+L1X6J5Yi3BAdIp4ertCY6xeKD6+lQt2q+zHK0De3 0CI4ivnh+yH/x5hvjRjDprrpotKc/tre0BWMpKpchw2ohZ21PRDmxpOsjFzTmyC0 V8TO0AG0hzpabzI9qNZRwyBz/GOzfFwyumKBDOv/z/2n2LDDBO+k10orfXrfhjdI uFE6m1YAA4vK0apTi0F6GokJNq+vqT2pRNEzO/Fsek7kRxoNCAUrbzL0aKMj8wsz M4wIUq8TE3R2d5cvEt+ibQK0+7OydoKoaiCd3BfumVsj5SBRio/GcMetJA1lThUn W8e1yPtzPO/GlSatdvRiIJFzyzlX1ZVAfFXD419Gq0/X23/GK+j9k1rHQzg8e3+j 7yVph3DLfZfnQqmBpD3Xl4NCp7zYq7QgfdsB1GNzub/PEatfcv2DVLlnCDCTKgGu j5/r/0dwrOkb1q3SGtONo/dAovSi0oIbW3Wfe4ebB8S1HVo9pFpPDIqc1g3xXRA2 laqc7vBAcE5ZfS5/uDmW74PMV1khDeDkhmhoEGSQbFTSSC40DwufvyBAPMyzjjvf 9JAvOp5FS9RS0020KPKIlOtxQXA+CrJSIbaQZu6m/nmH17a60QnW8kwZ799/Pqgd IsacvSJvpYKHtQbg9JCJ =Hav4 -----END PGP SIGNATURE-----
diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index 43f9610..1b72cec 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -345,7 +345,7 @@ class Context(object): def setup_errors(self, options, result): Errors.reset() # clear any remaining error state if options.use_listing_file: - result.listing_file = Utils.replace_suffix(source, ".lis") + result.listing_file = Utils.replace_suffix(result.main_source_file, ".lis") path = result.listing_file else: path = None
_______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel