Skip to content

Commit

Permalink
Add legacy_implicit_noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Nov 2, 2023
1 parent fa5cc1d commit 592a424
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions line_profiler/_line_profiler.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# cython: language_level=3
# cython: infer_types=True
# cython: legacy_implicit_noexcept=True
# distutils: language=c++
# distutils: include_dirs = python25.pxd
r"""
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,12 @@ def run_cythonize(force=False):
language="c++",
define_macros=[("CYTHON_TRACE", (1 if os.getenv("DEV") == "true" else 0))],
),
compiler_directives={"language_level": 3, "infer_types": True, "linetrace": (True if os.getenv("DEV") == "true" else False)},
compiler_directives={
"language_level": 3,
"infer_types": True,
"legacy_implicit_noexcept": True,
"linetrace": (True if os.getenv("DEV") == "true" else False)
},
include_path=["line_profiler/python25.pxd"],
force=force,
nthreads=multiprocessing.cpu_count(),
Expand Down

0 comments on commit 592a424

Please sign in to comment.