forked from phonopy/phonopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (60 loc) · 2.22 KB
/
setup.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
55
56
57
58
59
60
61
62
63
64
from distutils.core import setup, Extension
#from setuptools import setup, Extension
import numpy
include_dirs_numpy = [numpy.get_include()]
extension = Extension('phonopy._phonopy',
extra_compile_args=['-fopenmp'],
extra_link_args=['-lgomp'],
include_dirs=['c/harmonic_h'] + include_dirs_numpy,
sources=['c/_phonopy.c',
'c/harmonic/dynmat.c'])
extension_spglib = Extension(
'phonopy._spglib',
include_dirs=['c/spglib_h'] + include_dirs_numpy,
extra_compile_args=['-fopenmp'],
extra_link_args=['-lgomp'],
sources=['c/_spglib.c',
'c/spglib/cell.c',
'c/spglib/debug.c',
'c/spglib/hall_symbol.c',
'c/spglib/kpoint.c',
'c/spglib/lattice.c',
'c/spglib/mathfunc.c',
'c/spglib/pointgroup.c',
'c/spglib/primitive.c',
'c/spglib/refinement.c',
'c/spglib/sitesym_database.c',
'c/spglib/site_symmetry.c',
'c/spglib/spacegroup.c',
'c/spglib/spg_database.c',
'c/spglib/spglib.c',
'c/spglib/spin.c',
'c/spglib/symmetry.c',
'c/spglib/tetrahedron_method.c'])
setup(name='phonopy',
version='1.7.4',
description='This is the phonopy module.',
author='Atsushi Togo',
author_email='atz.togo@gmail.com',
url='http://phonopy.sourceforge.net/',
packages=['phonopy',
'phonopy.cui',
'phonopy.gruneisen',
'phonopy.harmonic',
'phonopy.interface',
'phonopy.phonon',
'phonopy.qha',
'phonopy.structure'],
scripts=['scripts/phonopy',
'scripts/phonopy-qha',
'scripts/phonopy-FHI-aims',
'scripts/bandplot',
'scripts/outcar-born',
'scripts/propplot',
'scripts/tdplot',
'scripts/fca',
'scripts/dispmanager',
'scripts/gruneisen',
'scripts/gruneisenplot',
'scripts/pdosplot'],
ext_modules=[extension, extension_spglib])