Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NF: generate config.pxi file with Cython DEF vars #445

Merged
merged 1 commit into from
Oct 11, 2014

Conversation

matthew-brett
Copy link
Contributor

Eleftherios needs to do conditional compiling depending on whether openmp is
present or not.

Following the recipe in
http://stackoverflow.com/questions/3826458/cython-conditional-compile-based-on-external-value
-- build a config.pxi file containing DEF variables that can be used in
extension code. For example, with the code here, a Cython extension could
include the following:

include "config.pxi"

IF HAVE_OPENMP:
   cimport openmp

Eleftherios needs to do conditional compiling depending on whether
openmp is present or not.

Following the recipe in
http://stackoverflow.com/questions/3826458/cython-conditional-compile-based-on-external-value
-- build a ``config.pxi`` file containing DEF variables that can be used
in extension code.  For example, with the code here, a Cython extension
could include the following:

    include "config.pxi"

    IF HAVE_OPENMP:
        cimport openmp
Garyfallidis added a commit that referenced this pull request Oct 11, 2014
NF: generate config.pxi file with Cython DEF vars
@Garyfallidis Garyfallidis merged commit d938a95 into dipy:master Oct 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants