Skip to content

Commit

Permalink
figure out why cython is not imported instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Jan 27, 2022
1 parent 755a560 commit 191dfdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ testpaths = ["tests"]

[tool.setuptools_scm]
write_to = "src/ruptures/version.py"
fallback_version = "999"

11 changes: 4 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@


if __name__ == "__main__":
try:
from Cython.Build import cythonize
from Cython.Build import cythonize

setup(
ext_modules=cythonize(ext_modules, language_level="3"),
)
except ModuleNotFoundError:
setup(use_scm_version={"fallback_version": "999"})
setup(
ext_modules=cythonize(ext_modules, language_level="3"),
)

0 comments on commit 191dfdb

Please sign in to comment.