forked from Okonce/CIMtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
86 lines (78 loc) · 3.8 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
# -*- coding: utf-8 -*-
#
# Copyright 2016-2021 Ramil Nugmanov <nougmanoff@protonmail.com>
# This file is part of CIMtools.
#
# CIMtools 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 3 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 <https://www.gnu.org/licenses/>.
#
from distutils.command.sdist import sdist
from distutils.util import get_platform
from pathlib import Path
from setuptools import setup, find_packages
from wheel.bdist_wheel import bdist_wheel
version = '4.0.10'
class _bdist_wheel(bdist_wheel):
def finalize_options(self):
super().finalize_options()
self.root_is_pure = False
platform = get_platform()
if platform == 'win-amd64':
self.distribution.data_files.append(('bin', ['Fragmentor/fragmentor_win_2017.exe']))
elif platform == 'linux-x86_64':
self.distribution.data_files.append(('bin', ['Fragmentor/fragmentor_lin_2017']))
elif platform.startswith('macosx') and platform.endswith('x86_64'):
self.distribution.data_files.append(('bin', ['Fragmentor/fragmentor_mac_2017']))
class _sdist(sdist):
def finalize_options(self):
super().finalize_options()
self.distribution.data_files.append(('bin', ['Fragmentor/fragmentor_win_2017.exe',
'Fragmentor/fragmentor_lin_2017',
'Fragmentor/fragmentor_mac_2017']))
setup(
name='CIMtools',
version=version,
packages=find_packages(),
url='https://github.com/stsouko/CIMtools',
license='GPLv3',
author='Dr. Ramil Nugmanov',
author_email='nougmanoff@protonmail.com',
python_requires='>=3.6.1',
cmdclass={'bdist_wheel': _bdist_wheel, 'sdist': _sdist},
install_requires=['CGRtools[mrv]>=4.0,<4.2', 'pandas>=0.22', 'scikit-learn>=0.24',
'pyparsing>=2.2', 'pyjnius>=1.3.0'],
extras_require={'gnnfp': ['tensorflow>=2.2.0']},
package_data={'CIMtools.preprocessing.graph_encoder': ['weights.h5'],
'CIMtools.datasets': ['data/*.rdf']},
data_files=[('lib', ['RDtool/rdtool.jar'])],
zip_safe=False,
long_description=(Path(__file__).parent / 'README.rst').open().read(),
classifiers=['Environment :: Plugins',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'],
command_options={'build_sphinx': {'source_dir': ('setup.py', 'doc'),
'build_dir': ('setup.py', 'build/doc'),
'all_files': ('setup.py', True)}}
)