File: setup.py

package info (click to toggle)
indigo 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 48,936 kB
  • sloc: ansic: 332,816; cpp: 169,470; python: 20,033; java: 13,701; cs: 9,979; asm: 8,475; sql: 6,743; xml: 6,354; javascript: 1,245; sh: 555; php: 506; makefile: 54
file content (90 lines) | stat: -rw-r--r-- 3,205 bytes parent folder | download
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
87
88
89
90
import distutils.dir_util
import os
import sys

from setuptools import setup

CLASSIFIERS = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: C
Programming Language :: C++
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development
Topic :: Scientific/Engineering :: Chemistry
Operating System :: Microsoft :: Windows
Operating System :: POSIX :: Linux
Operating System :: MacOS
"""

LONG_DESCRIPTION = "Indigo is a universal molecular toolkit that can be used for molecular fingerprinting, substructure search, and molecular visualization.\
Also capable of performing a molecular similarity search, it is 100% open source and provides enhanced stereochemistry support for end users, \
as well as a documented API for developers."

INDIGO_LIBS = None

if sys.argv[1] == "bdist_wheel":
    for opt in sys.argv[2:]:
        if opt.startswith("--plat-name"):
            name = opt.split("=")[1]
            if name.startswith("macosx_10_7_intel"):
                INDIGO_LIBS = "lib/Mac/10.7/*.dylib"
            elif name == "manylinux1_x86_64":
                INDIGO_LIBS = "lib/Linux/x64/*.so"
            elif name == "manylinux1_i686":
                INDIGO_LIBS = "lib/Linux/x86/*.so"
            elif name == "win_amd64":
                INDIGO_LIBS = "lib/Win/x64/*.dll"
            elif name == "win32":
                INDIGO_LIBS = "lib/Win/x86/*.dll"
            break

if not INDIGO_LIBS:
    raise ValueError(
        "Wrong --plat-name value! Should be one of: macosx_10_7_intel, manylinux1_x86_64, manylinux1_i686, win_amd64, win32"
    )

if os.path.exists("build"):
    distutils.dir_util.remove_tree("build")
if os.path.exists("indigo_chem.egg-info"):
    distutils.dir_util.remove_tree("indigo_chem.egg-info")

setup(
    name="epam.indigo",
    version="1.4.2",
    description="Indigo universal cheminformatics toolkit",
    author="EPAM Systems Life Science Department",
    author_email="lifescience.opensource@epam.com",
    maintainer="Mikhail Kviatkovskii",
    maintainer_email="Mikhail_Kviatkovskii@epam.com",
    packages=[
        "indigo",
    ],
    license="Apache-2.0",
    url="https://lifescience.opensource.epam.com/indigo/index.html",
    package_dir={"indigo": "indigo"},
    package_data={
        "indigo": [
            INDIGO_LIBS,
        ]
    },
    classifiers=[_f for _f in CLASSIFIERS.split("\n") if _f],
    platforms=["Windows", "Linux", "Mac OS-X"],
    long_description=LONG_DESCRIPTION,
    long_description_content_type="text/plain",
    project_urls={
        "Bug Tracker": "https://github.com/epam/indigo/issues",
        "Documentation": "https://lifescience.opensource.epam.com/indigo/api/index.html",
        "Source Code": "https://github.com/epam/indigo/",
    },
    download_url="https://pypi.org/project/epam.indigo",
)