-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (45 loc) · 1.8 KB
/
setup.py
File metadata and controls
50 lines (45 loc) · 1.8 KB
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
from setuptools import setup, find_packages
import importlib
def test_import_module(module_name):
try:
importlib.import_module(module_name)
return True
except ModuleNotFoundError:
return False
install_requires = [
'torch', 'numpy', 'scikit-learn', 'matplotlib', 'pandas', 'tpot', 'xgboost', 'fair-esm',
'rdkit', 'biopython', 'meeko', 'openbabel',
'easydict', 'orjson', 'ormsgpack', 'pyyaml', 'bidict',
'joblib', 'wandb', 'tqdm', 'halo', 'pexpect', 'psutil', 'requests'
]
# Some modules, even if installed by conda, still do not enter the index of pip.
# Or its dependencies are still required to be installed by pip.
# We will dynamically import to test them.
module_to_be_test_import = ['rdkit', 'openbabel', 'tpot', 'xgboost']
satisfied_requires = set(filter(test_import_module, module_to_be_test_import))
install_requires = [x for x in install_requires if x not in satisfied_requires]
with open("README.md", 'r') as f:
long_description = f.read()
setup(
name='deepblock',
version='0.2.0',
description='Reactive Fragment-based Ligand Generation (Version 2)',
license='MIT',
long_description=long_description,
long_description_content_type='text/markdown',
author='Kaihao Zhang',
author_email='khzhang@stu.xjtu.edu.cn',
url="https://github.com/BioChemAI/DeepBlock",
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
python_requires='>=3.7',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
],
)