I'd like to make the integer constants (ACTIVE_TAG, etc) defined here:
//island management, m_activationState1 #define ACTIVE_TAG 1 #define ISLAND_SLEEPING 2 #define WANTS_DEACTIVATION 3 #define DISABLE_DEACTIVATION 4 #define DISABLE_SIMULATION 5
available as normal attributes of a Cython defined module I'm working on, so that Python application code can access them (to pass them in to wrapped APIs which are defined in terms of them).
I've looked at defining these with cdef as integers or enums, but neither of these approaches actually binds the value to an an attribute in the Cython module. What other options are there?