forked from YelpArchive/firefly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (38 loc) · 1.44 KB
/
setup.py
File metadata and controls
43 lines (38 loc) · 1.44 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
import os
import platform
from setuptools import find_packages
from setuptools import setup
import subprocess
import sys
requirements = [
"pycurl",
"pyyaml == 3.10",
"tornado >= 1.1, <2.0",
]
# python-rrdtool doesn't install cleanly out of the box on OS X
# TODO: python-rrdtool not compiling cleanly on lucid either -- fix later
#if not (os.name == "posix" and platform.system() == "Darwin"):
# requirements.append("python-rrdtool >= 1.4.7")
# If you know a better way to get the submodules pulled down to the filesystem
# before 'setup.py sdist' gets called, I'm all ears. This is necessary so that
# the static assets in the submodules are included in the distribution
# when built by Jenkins.
if 'sdist' in sys.argv or 'bdist_wheel' in sys.argv:
try:
subprocess.check_call(['make', 'production'])
except subprocess.CalledProcessError, cpe:
sys.stderr.write("Attempt to 'make production' failed with exit code %s" % cpe.returncode)
sys.exit(1)
setup(
name='firefly',
version='1.1.11',
provides=['firefly'],
author='Yelp',
description='A multi-datacenter graphing tool',
packages=find_packages(exclude=['tests']),
long_description="""Firefly provides graphing of performance metrics from multiple data centers and sources.
Firefly works with both the Ganglia and Statmonster data sources.
""",
install_requires=requirements,
include_package_data=True # See MANIFEST.in
)