-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·24 lines (22 loc) · 915 Bytes
/
setup.py
File metadata and controls
executable file
·24 lines (22 loc) · 915 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
#!/usr/bin/env python
from distutils.core import setup
def find_version(path):
import re
# path shall be a plain ascii text file.
s = open(path, 'rt').read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
s, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Version not found")
setup(name="bananaplots",
author="Yu Feng",
author_email="rainwoodman@gmail.com",
url="http://github.com/bccp/bananaplots",
version=find_version("bananas/bananas.py"),
zip_safe=True,
description="Plot bananas from combined MCMC (Markov Chain Monte Carlo) chains. For example, Planck or WMAP satellite likelyhood samples.",
long_description=open("README.rst", 'rt').read(),
packages=["bananas", "bananas.tests"],
requires=['scikit_learn', 'matplotlib', 'numpy', 'scipy'],
)