-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·39 lines (30 loc) · 918 Bytes
/
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
import os
import re
from setuptools import setup, find_packages
def read(filename):
f = open(filename)
r = f.read()
f.close()
return r
ver = re.compile("__version__ = \"(.*?)\"")
#m = read(os.path.join(os.path.dirname(os.path.abspath(__file__)), "refann", "__init__.py"))
#m = read(os.path.join(os.path.dirname(__file__), "refann", "__init__.py"))
m = read(os.path.join(os.getcwd(), "cmbnncs", "__init__.py"))
version = ver.findall(m)[0]
setup(
name = "cmbnncs",
version = version,
keywords = ("pip", "CNN"),
description = "CMB Neural Network Component Separator",
long_description = "",
license = "MIT",
url = "",
author = "Guojian Wang",
author_email = "[email protected]",
# packages = find_packages(),
packages = ["cmbnncs", "examples"],
include_package_data = True,
data_files = [],
platforms = "any",
install_requires = []
)