forked from diffpy/diffpy.srreal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·57 lines (48 loc) · 1.56 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
#!/usr/bin/env python
# Installation script for diffpy.Structure
"""diffpy.srreal - prototype for new PDF calculator and assortment
of real space utilities.
Packages: diffpy.srreal
Scripts: (none yet)
"""
import glob
from setuptools import setup, find_packages
from setuptools import Extension
from numpy.distutils.misc_util import get_numpy_include_dirs
# define extensions here
ext_kws = {
'libraries' : ['diffpy'],
'extra_compile_args' : [],
'extra_link_args' : [],
'include_dirs' : get_numpy_include_dirs(),
}
srreal_ext = Extension('diffpy.srreal.srreal_ext',
glob.glob('srrealmodule/*.cpp'),
**ext_kws)
# define distribution
dist = setup(
name = "diffpy.srreal",
version = "0.2a1",
namespace_packages = ['diffpy'],
packages = find_packages(exclude=['tests']),
test_suite = 'diffpy.srreal.tests',
include_package_data = True,
ext_modules = [srreal_ext],
install_requires = [
'diffpy.Structure',
],
dependency_links = [
# REMOVE dev.danse.us for a public release.
'http://dev.danse.us/packages/',
"http://www.diffpy.org/packages/",
],
zip_safe = False,
author = "Simon J.L. Billinge",
author_email = "sb2896@columbia.edu",
description = "Prototype for new PDF calculator and other real " + \
"space utilities.",
license = "BSD",
url = "http://www.diffpy.org/",
keywords = "PDF calculator real-space utilities",
)
# End of file