Is it possible to pass compile_directives in setup.py without cythonize ?

12 views
Skip to first unread message

Stu.Axon

unread,
Aug 4, 2017, 5:01:25 PM8/4/17
to cython-users
This S/O answer shows how to use setup.py without cythonize

https://stackoverflow.com/questions/37471313/setup-requires-with-cython

Is there a way to pass compile_directives through with this ?

Stefan Behnel

unread,
Aug 5, 2017, 1:39:16 AM8/5/17
to cython...@googlegroups.com
With the late import approach, yes. Which directives do you need, and how
is your current setup? You can set many directives directly in the source
files, for example.

Stefan

Stu.Axon

unread,
Aug 5, 2017, 4:04:01 PM8/5/17
to cython-users, stef...@behnel.de
Cheers, switching to this approach worked.
Reply all
Reply to author
Forward
0 new messages