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

Commits on Oct 11, 2014

  1. 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
    matthew-brett committed Oct 11, 2014
    Copy the full SHA
    613adb1 View commit details
    Browse the repository at this point in the history