Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (39 loc) · 1.35 KB
/
Copy pathsetup.py
File metadata and controls
46 lines (39 loc) · 1.35 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
# try importing from setuptools, if unavailable use distutils.core
try:
from setuptools import setup, find_packages
# test for 2.7-included packages, add to requirements if not available
install_requires
5590
= []
try:
import argparse
except ImportError:
install_requires.append('argparse')
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
kws = {'install_requires': install_requires}
except ImportError:
from distutils.core import setup
kws = {}
# import version from mtools/version.py
exec(open('mtools/version.py').read())
# read README.md for long_description content
with open('README.md') as f:
long_description = f.read()
setup(
name='mtools',
version=__version__,
packages=find_packages(),
package_data = {
'mtools': ['data/logdb.pickle', 'data/index.html'],
},
scripts=['scripts/mlaunch','scripts/mlog2json','scripts/mlogdistinct',
'scripts/mlogfilter','scripts/mlogmerge','scripts/mlogversion',
'scripts/mlogvis','scripts/mplotqueries'],
author='Thomas Rueckstiess',
author_email='thomas@rueckstiess.net',
url='https://github.com/rueckstiess/mtools',
description='Useful scripts to parse and visualize MongoDB log files.',
long_description=long_description,
**kws
)