-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
57 lines (46 loc) · 1.64 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
# -*- coding: utf-8 -*-
"""The module dedicated to install the mia_processes library."""
##########################################################################
# mia_processes - Copyright (C) IRMaGe/CEA, 2018
# Distributed under the terms of the CeCILL license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html
# for details.
##########################################################################
import os
from setuptools import find_packages, setup
# Select modules to include in distribution
modules = find_packages()
print("\nmodules found: ", modules)
# Additional script files to include in distribution
scripts = []
# Data files to include in distribution
pkgdata = {
# format is:
# <python module>: <file extensions list>
}
# Read the info.py file in mia_processes module
release_info = {}
root_dir = os.path.dirname(__file__)
with open(os.path.join(root_dir, "mia_processes", "info.py")) as f:
code = f.read()
exec(code, release_info)
# Build the setup
setup(
name=release_info["NAME"],
description=release_info["DESCRIPTION"],
long_description=release_info["LONG_DESCRIPTION"],
license=release_info["LICENSE"],
classifiers=release_info["CLASSIFIERS"],
author=release_info["AUTHOR"],
author_email=release_info["AUTHOR_EMAIL"],
version=release_info["VERSION"],
url=release_info["URL"],
packages=modules,
package_data=pkgdata,
platforms=release_info["PLATFORMS"],
install_requires=release_info["REQUIRES"],
extras_require=release_info["EXTRA_REQUIRES"],
scripts=scripts,
zip_safe=False,
)