Good point: https://github.com/cython/cython/commit/e0fd2b3c8265ea40084ee9981d8601bc6e11b97e
On Thu, Apr 23, 2015 at 2:22 AM, Anton D. Kachalov <mo...@yandex-team.ru> wrote: > Hello. > > I've found that executable script with dashes in the filename lead to > produce wrong cythonized source: > > $ touch my-great-script.py > $ cython my-great-script.py --embed > $ fgrep PyInit my-great-script.c > PyMODINIT_FUNC PyInit_my-great-script(void); /*proto*/ > PyMODINIT_FUNC PyInit_my-great-script(void) > __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_my-great-script(void)", > 0); > m = PyInit_my-great-script(); > > So, if I don't want to import my final script elsewhere, I'm free to choose > any filename for it. > > -- > Anton D. Kachalov > > _______________________________________________ > cython-devel mailing list > cython-devel@python.org > https://mail.python.org/mailman/listinfo/cython-devel > _______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel