I take it you are trying to write a Cython class using a shared library from the Gambit optional package?
Look at the bottom of src/module_list.py, there are already a number of Cython extensions that are only compiled conditionally.
Look at the bottom of src/module_list.py, there are already a number of Cython extensions that are only compiled conditionally.Thanks!
Very helpful: thanks. Is there another way to handle this and/or get around it?
>
> Nathann
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-devel/IPRJwPdkuW0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
> To post to this group, send email to sage-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
from sage.misc.package import is_package_installed
from cooperative_game import CooperativeGame
if is_package_installed('gambit'):
from normal_form_game import *
from sage.misc.package import is_package_installed from cooperative_game import CooperativeGame if is_package_installed('gambit'): from normal_form_game import *
normal_form_game.py is the module that imports and inherits from gambit.