-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (22 loc) · 754 Bytes
/
Copy pathsetup.py
File metadata and controls
33 lines (22 loc) · 754 Bytes
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
from setuptools import setup
import os
import sys
if sys.version_info < (3, 5):
sys.exit("Python < 3.5 is not supported.")
def get_version(version_tuple):
return ".".join(map(str, version_tuple))
init = os.path.join(
os.path.dirname(__file__), ".", "", "__init__.py")
version_line = list(
filter(lambda l: l.startswith("VERSION"), open(init))
)[0]
PKG_VERSION = get_version(eval(version_line.split("=")[-1]))
description = "Work in progress. Do not use!"
setup(name="ecpli",
version=PKG_VERSION,
description=description,
license="MIT",
install_requires=["numpy", "gammapy"])
import gammapy
if not gammapy.__version__ == "0.16":
raise ImportError("Currently only supporting gammapy v-0.16!")