Skip to content

Commit

Permalink
Remove build target 'none' for x64
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Jul 31, 2024
1 parent 712a8c0 commit a0d59b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion
from sysconfig import get_platform
import struct

import numpy as np

Expand Down Expand Up @@ -209,6 +210,10 @@ def build_extension(self, ext):
else:
arch_levels = ['native']

# if target is in 64bit, remove 'none'
if struct.calcsize("P") == 8:
arch_levels.remove('none')

modules = []
if len(arch_levels) > 1:
modules.append(CMakeExtension('_tomotopy',
Expand Down

0 comments on commit a0d59b1

Please sign in to comment.