Specifying the name of a module at command line

10 views
Skip to first unread message

David Cournapeau

unread,
Apr 17, 2012, 11:02:58 AM4/17/12
to cython...@googlegroups.com
Hi,

I noticed that the cythonize distutils helpers allow for a module name to be taken from the extension name instead of the filename, e.g. Extension("foo", source=["_bar.pyx"]) will produce an extension called foo.

Would it be possible to add this option to the command line interface, e.g. cython --modname=foo _bar.pyx ? This would make integration with 3rd party tools easier I think.

David
Reply all
Reply to author
Forward
0 new messages