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

Projects
None yet
2 participants
@matthew-brett
Member

matthew-brett commented Oct 11, 2014

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
NF: generate config.pxi file with Cython DEF vars
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

Merge pull request #445 from matthew-brett/conditional-compiling
NF: generate config.pxi file with Cython DEF vars

@Garyfallidis Garyfallidis merged commit d938a95 into nipy:master Oct 11, 2014

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment