forked from tomchor/pymicra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (37 loc) · 1.42 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
#!/usr/bin/env python
"""
Python Micrometeorological Analysis tool - Pymicra
"""
from __future__ import print_function
import os
#-----------
# Import version from one file used by the whole module
vfile = os.path.join(os.path.dirname(os.path.realpath(__file__)),'pymicra/version')
__version__ = open(vfile, 'rt').read().strip()
#-----------
dependencies=['Pandas', 'Numpy', 'pint']
#-----------
# Be ready to work with or without setuptools
try:
from setuptools import setup, find_packages
print("Setuptools installed. Proceeding with installation...\n")
except ImportError:
raise ImportError("No setuptools installed!\nPlease install setuptools in order to proceed with installation. Try: sudo apt-get install python-setuptools")
#-----------
#-----------
# Being sure to find every submodule within pymicra and set up the kwargs
packages = find_packages()
#-----------
extra_kwargs={'install_requires' : dependencies,
'keywords':['meteorology', 'micrometeorology', 'atmosphere', 'science']}
setup(name='pymicra',
version = __version__,
description='A Python tool for Micrometeorological Analyses',
long_description=open('README.rst').read(),
url='https://github.com/tomchor/pymicra.git',
author='Tomas Chor',
author_email='[email protected]',
license='GNU GPL V3.0',
packages=packages,
package_data={'pymicra':['pymicra.pint', 'version']},
**extra_kwargs)