Commit 33eba4be authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

updating setup py for travis ci


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent a956404c
......@@ -63,16 +63,11 @@ class CMakeBuild(build_ext):
cfg = 'Debug' if self.debug else 'Release'
build_args = ['--config', cfg]
if platform.system() == "Windows":
cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}'.format(
cfg.upper(),
extdir)]
if sys.maxsize > 2**32:
cmake_args += ['-A', 'x64']
build_args += ['--', '/m']
else:
cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg]
build_args += ['--', '-j'+str(multiprocessing.cpu_count())]
cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg]
if platform.system() == 'Darwin':
cmake_args += ['-DCMAKE_CXX_FLAGS=\"-arch x86_64\"']
build_args += ['--', '-j'+str(multiprocessing.cpu_count())]
if not os.path.exists(self.build_temp):
os.makedirs(self.build_temp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment