-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
29 lines (27 loc) · 1023 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
from distutils.core import setup
import sys
import os
import re
packageName = 'analyzeSN'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
packageName)
versionFile = os.path.join(packageDir, 'version.py')
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__version__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
setup(# package information
name=packageName,
version=__version__,
description='A set of utilities to analyze SN light curves',
long_description=''' ''',
# What code to include as packages
packages=[packageName],
package_dir={packageName:'analyzeSN'},
# What data to include as packages
include_package_data=True,
package_data={packageName: ['example_data/*.FITS', 'example_data/*.dat',
'example_data/*.md', 'example_data/lc*']}
)