forked from SINGROUP/dscribe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (65 loc) · 2.47 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
import platform
from setuptools import setup, find_packages, Extension
# On Mac we need to specify that libc++ should be used
cpp_extra_compile_args = ['-std=c++11']
if platform.system() == "Darwin":
cpp_extra_compile_args.append('-stdlib=libc++')
extensions = [
# The ACSF C++ extension, wrapped with cython
Extension(
"dscribe.libacsf.acsfwrapper",
[
"dscribe/libacsf/acsfwrapper.cpp",
],
language='c++',
include_dirs=["dscribe/libacsf"],
extra_compile_args=cpp_extra_compile_args,
),
# The MBTR C++ extension, wrapped with cython
Extension(
"dscribe.libmbtr.mbtrwrapper",
[
"dscribe/libmbtr/mbtrwrapper.cpp",
],
language='c++',
include_dirs=["dscribe/libmbtr"],
extra_compile_args=cpp_extra_compile_args,
),
]
if __name__ == "__main__":
setup(name='dscribe',
version="0.2.6",
url="https://singroup.github.io/dscribe/",
description='A Python package for creating feature transformations in applications of machine learning to materials science.',
long_description='A Python package for creating feature transformations in applications of machine learning to materials science.',
packages=find_packages(),
install_requires=[
'numpy',
'scipy',
'ase',
'future',
'scikit-learn==0.20.3',
'joblib',
'soaplite==1.0.3',
],
include_package_data=True, # This ensures that files defined in MANIFEST.in are included
ext_modules=extensions,
license="Apache License 2.0",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Physics',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
keywords='descriptor machine learning atomistic structure materials science',
python_requires='>=2.6, <4',
)