Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
compiler_directives is unknown , try cython_directives
  • Loading branch information
scorpion81 authored Jan 11, 2025
1 parent 8100938 commit 1151ae8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sources/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@
module_name,
['core' + '.pyx'],
extra_compile_args=['/Ox','/openmp','/GT','/arch:SSE2','/fp:fast'],
cython_directives={'language_level' : "3"},
compiler_directives={'cpow': True},
cython_directives={'language_level' : "3", 'cpow': True}
)]
elif is_linux:
ext_modules = [Extension(
module_name,
['core' + '.pyx'],
extra_compile_args=['-O3','-msse4.2','-ffast-math','-fno-builtin'],
extra_link_args=['-lm'],
cython_directives={'language_level' : "3"},
compiler_directives={'cpow': True},
cython_directives={'language_level' : "3", 'cpow': True}
)]
else:
# under mac OS, with the advent of the M1 ARM chips, its necessary to build an universal intel/arm binary.
Expand All @@ -35,8 +33,7 @@
['core' + '.pyx'],
extra_compile_args=['-O3','-msse4.2','-ffast-math','-fno-builtin','-arch','arm64e','-arch','x86_64','-arch','arm64'],
extra_link_args=['-lm','-arch','arm64e','-arch','x86_64','-arch','arm64'],
cython_directives={'language_level' : "3"},
compiler_directives={'cpow': True},
cython_directives={'language_level' : "3", 'cpow': True}
)]

setup(
Expand Down

0 comments on commit 1151ae8

Please sign in to comment.