-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (56 loc) · 2 KB
/
setup.py
File metadata and controls
68 lines (56 loc) · 2 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import os
import sys
if 'develop' in sys.argv:
# setuptools bad.
from setuptools import setup
else:
from distutils.core import setup
curdir = os.path.abspath(os.path.dirname(__file__))
config_suffix_list = ["*.ini"]
catalog_suffix_list = ('.py',
'.yaml')
if sys.platform == 'win32':
dir_sep = '\\'
else:
dir_sep = '/'
def get_sql_files():
data_files = []
root = os.path.join("estuarial","data", "catalog", "SQL_DATA")
install_folder = os.path.join("data", "catalog", "SQL_DATA")
##scan catalog for files with the above extensions and add to pkg_data_dirs
for path, dirs, files in os.walk(root):
for fs in files:
if fs.endswith(catalog_suffix_list):
#remove estuarial from path name
install_path = dir_sep.join(path.split(dir_sep)[1:])
data_files.append(os.path.join(install_path,fs))
return data_files
package_data = dict(estuarial=get_sql_files())
config_ini = os.path.join("util","config","estuarial.ini")
package_data['estuarial'].append(config_ini)
version = "0.0.1"
setup(name='estuarial',
version=version,
author='Continuum Analytics',
author_email='info@continuum.io',
url='http://github.com/ContinuumIO/estuarial',
description='Python TRQAD API',
packages=['estuarial',
'estuarial.test',
'estuarial.array',
'estuarial.util',
'estuarial.util.config',
'estuarial.data',
'estuarial.query',
'estuarial.browse',
'estuarial.data.catalog',
'estuarial.drilldown'],
package_data=package_data,
zip_safe=False,
install_requires=['pandas>=0.12.0',
'numpy>=1.7.1',
'scipy>=0.12.0',
'arraymanagement>0.0.1',
'pytables>=3.0.0',
'sqlalchemy>=0.9.1',
'pyodbc>=3.0.7'])