forked from bd-j/prospector
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
44 lines (40 loc) · 1.15 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
import glob
#import subprocess
try:
from setuptools import setup
setup
except ImportError:
from distutils.core import setup
setup
#githash = subprocess.check_output(["git", "log", "--format=%h"], universal_newlines=True).split('\n')[0]
vers = "0.4.0"
githash = ""
with open('prospect/_version.py', "w") as f:
f.write('__version__ = "{}"\n'.format(vers))
f.write('__githash__ = "{}"\n'.format(githash))
setup(
name="prospect",
url="https://github.com/bd-j/prospect",
version=vers,
author="Ben Johnson",
author_email="[email protected]",
packages=["prospect",
"prospect.models",
"prospect.likelihood",
"prospect.fitting",
"prospect.sources",
"prospect.io",
"prospect.utils"],
license="LICENSE",
description="Stellar Population Inference",
long_description=open("README.md").read(),
package_data={"": ["README.md", "LICENSE"]},
scripts=glob.glob("scripts/*.py"),
include_package_data=True,
install_requires=["numpy"],
)