forked from phonopy/phonopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup4-mac.py
54 lines (51 loc) · 1.92 KB
/
setup4-mac.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from distutils.core import setup, Extension
#from setuptools import setup, Extension
import numpy
include_dirs_numpy = [numpy.get_include()]
include_dirs_lapacke = ['../lapack-3.5.0/lapacke/include']
extension_phono4py = Extension(
'anharmonic._phono4py',
include_dirs=(['c/harmonic_h',
'c/anharmonic_h'] +
include_dirs_numpy +
include_dirs_lapacke),
extra_compile_args=['-fopenmp'],
extra_link_args=['-lgomp',
'../lapack-3.5.0/liblapacke.a'],
#'-llapack',
#'-lblas'],
sources=['c/_phono4py.c',
'c/harmonic/dynmat.c',
'c/anharmonic/lapack_wrapper.c',
'c/anharmonic/phonoc_array.c',
'c/anharmonic/phonoc_math.c',
'c/anharmonic/phonoc_utils.c',
'c/anharmonic/phonon3/fc3.c',
'c/anharmonic/phonon4/fc4.c',
'c/anharmonic/phonon4/real_to_reciprocal.c',
'c/anharmonic/phonon4/frequency_shift.c'])
extension_forcefit = Extension(
'anharmonic._forcefit',
include_dirs=(['c/anharmonic_h'] +
include_dirs_numpy +
include_dirs_lapacke),
extra_compile_args=['-fopenmp'],
extra_link_args=['-lgomp',
'../lapack-3.5.0/liblapacke.a'],
#'-llapack',
#'-lblas'],
sources=['c/_forcefit.c',
'c/anharmonic/lapack_wrapper.c'])
setup(name='phono4py',
version='0.8.0',
description='This is the phono3py module.',
author='Atsushi Togo',
author_email='atz.togo@gmail.com',
url='http://phonopy.sourceforge.net/',
packages=['anharmonic',
'anharmonic.force_fit',
'anharmonic.phonon4'],
scripts=['scripts/force-fit',
'scripts/phono4py'],
ext_modules=[extension_phono4py,
extension_forcefit])