-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
61 lines (52 loc) · 2.4 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
#!/usr/bin/env python
import os
import glob
# We use numpy distutils to compile and wrap f90 code via f2py
import setuptools
with open('README.md', 'r') as fh:
readme = fh.read()
with open('partycls/core/_version.py') as f:
exec(f.read())
args = dict(name='partycls',
version=__version__,
description='Unsupervised learning of the structure of particulate systems',
long_description=readme,
long_description_content_type="text/markdown",
author='Joris Paret',
author_email='[email protected]',
maintainer='Joris Paret',
url='https://github.com/jorisparet/partycls',
download_url='https://pypi.org/project/partycls',
keywords=['physics', 'condensed matter', 'structure',
'machine learning', 'unsupervised', 'clustering',
'molecular dynamics', 'particle',
'descriptor', 'radial', 'angular', 'correlation'],
packages=['partycls',
'partycls/core',
'partycls/descriptors'],
install_requires=['numpy', 'scikit-learn'],
license='GPLv3',
setup_requires = ['numpy'],
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering :: Physics'
]
)
try:
from numpy.distutils.core import setup, Extension
args["ext_modules"] = [Extension('partycls.descriptors.realspace_wrap',
sources=['partycls/descriptors/realspace.f90'],
extra_f90_compile_args=[]),
Extension('partycls.neighbors_wrap',
sources=['partycls/neighbors.f90'],
extra_f90_compile_args=[])]
except (ModuleNotFoundError, ImportError):
from distutils.core import setup
setup(**args)