-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove special intel_mp_fourier library; add intel compile instructio…
…ns to setup.py
- Loading branch information
Showing
6 changed files
with
30 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
from distutils.core import setup, Extension | ||
from distutils.command.build_ext import * | ||
from distutils.dist import Distribution | ||
|
||
# import sys | ||
# py3 = (sys.version_info[0] >= 3) | ||
import os | ||
|
||
# from http://stackoverflow.com/questions/12491328/python-distutils-not-include-the-swig-generated-module | ||
from distutils.command.build import build | ||
|
@@ -58,22 +56,26 @@ class CustomBuild(build): | |
#extra_compile_args=['-O0','-g'], | ||
#extra_link_args=['-O0', '-g'], | ||
|
||
module_fourier = Extension('tractor._mp_fourier', | ||
sources = ['tractor/mp_fourier.i'], | ||
include_dirs = numpy_inc, | ||
extra_compile_args=['-std=c99'], | ||
extra_objects = [], | ||
undef_macros=['NDEBUG'], | ||
) | ||
|
||
module_em = Extension('tractor._emfit', | ||
sources = ['tractor/emfit.i' ], | ||
include_dirs = numpy_inc, | ||
extra_objects = [], | ||
undef_macros=['NDEBUG'], | ||
) | ||
#extra_compile_args=['-O0','-g'], | ||
#extra_link_args=['-O0', '-g'], | ||
|
||
kwargs = {} | ||
if os.environ.get('CC') == 'icc': | ||
kwargs.update(extra_compile_args=['-g', '-xhost', '-axMIC-AVX512'], | ||
extra_link_args=['-g', '-lsvml']) | ||
else: | ||
kwargs.update(extra_compile_args=['-g', '-std=c99'], | ||
extra_link_args=['-g']) | ||
|
||
module_fourier = Extension('tractor._mp_fourier', | ||
sources = ['tractor/mp_fourier.i'], | ||
include_dirs = numpy_inc, | ||
undef_macros=['NDEBUG'], | ||
**kwargs) | ||
|
||
class MyDistribution(Distribution): | ||
display_options = Distribution.display_options + [ | ||
|
@@ -101,8 +103,6 @@ class MyDistribution(Distribution): | |
author_email="[email protected]", | ||
packages=['tractor', 'wise'], | ||
ext_modules = mods, | ||
# py_modules = pymods, | ||
# data_files=[('lib/python/wise', ['wise/wise-psf-avg.fits'])], | ||
package_data={'wise':['wise-psf-avg.fits', 'allsky-atlas.fits']}, | ||
package_dir={'wise':'wise', 'tractor':'tractor'}, | ||
url="http://theTractor.org/", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters