-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·39 lines (30 loc) · 1.14 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
#!/usr/bin/env python
import os
import subprocess
try: from setuptools import setup
except: from distutils.core import setup
path = os.path.dirname(os.path.realpath(__file__))
version_file = os.path.join(path, "actin", "VERSION")
try:
with open(version_file, 'r') as file:
version = file.read()
except: version = "unknown"
setup(name = 'actin',
version = version,
description = 'Activity Indices Calculator',
url = 'http://github.com/gomesdasilva/ACTIN',
download_url = 'https://github.com/gomesdasilva/ACTIN/archive/v1.3.2.tar.gz',
author = 'Joao Gomes da Silva',
author_email = '[email protected]',
license = 'MIT',
keywords = ['astronomy', 'activity', 'fits', 'harps', 'harps-n', 'espresso','radial velocity', 'exoplanets'],
packages = ['actin'],
entry_points = {
"console_scripts": ['actin = actin.actin:main']
},
include_package_data = True,
install_requires = ['appdirs']
)
# This runs ACTIN from terminal, creates ACTIN directory with config file in Application Support and gives its location
#try: subprocess.call(["actin"])
#except: pass