Skip to content

Commit

Permalink
Update setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
lixfz committed Jul 14, 2022
1 parent d5c3da1 commit 0b1f07d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,15 @@ def execfile(fname, globs, locs=None):
if pyx_modules:
from Cython.Build import cythonize

libraries = []
if os.name == "posix":
libraries.append("m")
pyx_modules = list(map(lambda f: Extension(f.replace(os.sep, '.'), [f'{f}.pyx'],
include_dirs=[np_include],
language="c++"),
libraries=libraries,
language="c++",
extra_compile_args=["-O3"],
),
pyx_modules))
pyx_modules = cythonize(pyx_modules, compiler_directives={'language_level': "3"})

Expand Down

0 comments on commit 0b1f07d

Please sign in to comment.