-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·91 lines (83 loc) · 3.12 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# ======================================================================
# Atomistica - Interatomic potential library and molecular dynamics code
# https://github.com/Atomistica/atomistica
#
# Copyright (2005-2015) Lars Pastewka <[email protected]> and others
# See the AUTHORS file in the top-level Atomistica directory.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# ======================================================================
from __future__ import absolute_import, print_function
import glob
import os
import sys
import re
import numpy as np
from numpy.distutils.core import setup, Extension
import versioneer
###
inc_dirs = [ np.get_include(),
'src/LAMMPS_STUB',
'src/force_constants',
'src/main',
'src/mathutils',
'src/stiffness_kernels',
'src/surfaces'
]
###
setup(
name = 'gfmd',
version = versioneer.get_version(),
cmdclass = versioneer.get_cmdclass(),
description = 'GFMD - Green\' function molecular dynamics',
maintainer = 'Lars Pastewka',
maintainer_email = '[email protected]',
url = 'https://github.com/Atomistica/user-gfmd',
download_url = 'https://github.com/Atomistica/user-gfmd/tarball/'+versioneer.get_version(),
license = 'GPLv3',
packages = [
'gfmd'
],
package_dir = {
'gfmd': 'src/python/gfmd'
},
ext_modules = [
Extension(
'_gfmd',
['src/LAMMPS_STUB/memory.cpp',
'src/main/force_constants.cpp',
'src/main/crystal_surface.cpp',
'src/main/surface_stiffness.cpp',
'src/mathutils/table2d.cpp',
'src/mathutils/linearalgebra.cpp',
'src/stiffness_kernels/debug_stiffness.cpp',
'src/stiffness_kernels/ft_stiffness.cpp',
'src/stiffness_kernels/isotropic_stiffness.cpp',
'src/stiffness_kernels/sc100_stiffness.cpp',
'src/stiffness_kernels/fcc100_stiffness.cpp',
'src/stiffness_kernels/fcc100ft_stiffness.cpp',
'src/surfaces/dia100_surface.cpp',
'src/surfaces/dia111_surface.cpp',
'src/surfaces/fcc100_surface.cpp',
'src/surfaces/fcc111_surface.cpp',
'src/surfaces/sc100_surface.cpp',
'src/python/gfmdmodule.cpp',
'src/python/py_bicubic.cpp',
'src/python/py_surface_stiffness.cpp'
],
include_dirs = inc_dirs,
define_macros = [('PYTHON', None)]
)
],
)