-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (31 loc) · 904 Bytes
/
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
#from distutils.core import setup
import imp
"""
setup script to be used to check the environment and deploy to nodes.
"""
def check_versions():
"""
Checks that the machine on which installation occurs has the required libs and versions
:return: success or failure message
"""
try:
imp.find_module('lxml')
imp.find_module('netCDF4')
from lxml import etree
import netCDF4
print(etree.LXML_VERSION)
print(netCDF4.__version__)
except:
print("Required library not found on machine, please refer to the install manual.")
"""
setup(name="esgPost",
version="0.1",
description="A push mode publisher for ESGF nodes",
author="AtefBN",
author_email="[email protected]",
url="https://github.com/AtefBN/esgPost",
packages=['src'],
package_data=['']
)
"""
check_versions()