-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
39 lines (32 loc) · 1.11 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
import setuptools
import os.path as op
import os
import logging as _logging
_log = _logging.getLogger(__name__)
try:
from soma import aims
except:
ImportError(
"pyAims could not be imported. It makes no sense to install this package outside a brainvisa environment.")
with open(op.join(op.split(__file__)[0], "README.md"), "r") as fh:
long_description = fh.read()
release_info = {}
python_dir = os.path.dirname(__file__)
with open(os.path.join(python_dir, "dico_toolbox", "info.py")) as f:
code = f.read()
exec(code, release_info)
setuptools.setup(
name=release_info['NAME'],
version=release_info['__version__'],
description=release_info['DESCRIPTION'],
author=release_info['AUTHOR'],
author_email=release_info['AUTHOR_EMAIL'],
long_description=long_description,
long_description_content_type="text/markdown",
url=release_info['URL'],
packages=setuptools.find_packages(),
install_requires=release_info["REQUIRES"],
classifiers=release_info["CLASSIFIERS"],
extras_require=release_info['EXTRA_REQUIRES'],
entry_points=release_info['ENTRYPOINTS'],
)