Skip to content

Commit

Permalink
explicitly set cython language_level (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Oct 12, 2023
1 parent 817b7f7 commit 62b454d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ def _set_builtin(name, value):

if cythonize:
[udunits_ext] = cythonize(
udunits_ext, compiler_directives=COMPILER_DIRECTIVES, language_level=2
udunits_ext,
compiler_directives=COMPILER_DIRECTIVES,
language_level="3str",
)

cmdclass = {"clean_cython": CleanCython, "build_ext": numpy_build_ext}
Expand Down

0 comments on commit 62b454d

Please sign in to comment.