Skip to content

Commit

Permalink
Trying to get it to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDunfield committed Oct 11, 2023
1 parent 76e2425 commit 0b4a653
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,13 @@ def add(self, source_file, dependency_mod_time=0.0):
hp_extra_compile_args = ['-mfpmath=sse', '-msse2', '-mieee-fp']


if have_cython:
if [int(x) for x in cython_version.split('.')[:2]] < [3, 0]:
if sys.platform == 'win32':
hp_extra_compile_args.append('/DFORCE_C_LINKAGE')
else:
hp_extra_compile_args.append('-DFORCE_C_LINKAGE')

# SnapPyHP depends implicitly on the source for the main kernel, so we
# we delete certain object files to force distutils to rebuild them.

Expand Down

0 comments on commit 0b4a653

Please sign in to comment.