Newer
Older
#!/usr/bin/env python
from distutils.core import setup
import subprocess
# Write a version file containing the git hash and info
try:
git_log = subprocess.check_output(
['git', 'log', '-1', '--pretty=%h %ai']).decode('utf-8')
git_diff = (subprocess.check_output(['git', 'diff', '.'])
+ subprocess.check_output(
['git', 'diff', '--cached', '.'])).decode('utf-8')
if git_diff == '':
status = '(CLEAN) ' + git_log
else:
status = '(UNCLEAN) ' + git_log
except subprocess.CalledProcessError:
version_file = '.version'
if path.isfile(version_file) is False:
with open('tupak/' + version_file, 'w+') as f:
f.write('{} - {}'.format(version, status))
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst')) as f:
long_description = f.read()
description='The User friendly Parameter estimAtion Kode',
author='Greg Ashton, Moritz Hubner, Paul Lasky, Colm Talbot',
author_email='paul.lasky@monash.edu',
license="MIT",
packages=['tupak', 'tupak.core', 'tupak.gw'],
package_dir={'tupak': 'tupak'},
package_data={'tupak.gw': ['prior_files/*', 'noise_curves/*.txt', 'detectors/*'],
'tupak': [version_file]},
install_requires=[
'future',
'dynesty',
'corner',
'numpy',
'matplotlib',
'deepdish',
'pandas',
'scipy',
'gwpy',
'lalsuite',
]