Fixing C cache version for release candidates
@@ -21,9 +21,10 @@ def get_compile_args(compiler):
def get_cache_version():
- if "dev" in __version__:
- return ()
+ try:
return tuple(map(int, __version__.split(".")))
+ except ValueError:
+ return ()
def get_header_dirs(eigen=True):
