Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 80 lines (67 sloc) 2.936 kb
1cdc7ff initial skeleton
Daniel Robbins authored
1 ################################
2 # These variables are overwritten by Zenoss when the ZenPack is exported
3 # or saved. Do not modify them directly here.
4 # NB: PACKAGES is deprecated
5 NAME = "ZenPacks.zenoss.OpenVZ"
13ed487 @cluther Zenoss 4.2 compatibility. PEP8 cleanups.
cluther authored
6 VERSION = "1.0.3"
1cdc7ff initial skeleton
Daniel Robbins authored
7 AUTHOR = "Zenoss"
5219103 @danielrobbins GPLv2 licensing fix
danielrobbins authored
8 LICENSE = "GPLv2"
1cdc7ff initial skeleton
Daniel Robbins authored
9 NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.zenoss']
10 PACKAGES = ['ZenPacks', 'ZenPacks.zenoss', 'ZenPacks.zenoss.OpenVZ']
11 INSTALL_REQUIRES = []
d8db8e7 @cluther Bumping to v1.0.2 and updating README.
cluther authored
12 COMPAT_ZENOSS_VERS = ">=3.2"
1cdc7ff initial skeleton
Daniel Robbins authored
13 PREV_ZENPACK_NAME = ""
14 # STOP_REPLACEMENTS
15 ################################
16 # Zenoss will not overwrite any changes you make below here.
17
18 import os
19 from subprocess import Popen, PIPE
20 from setuptools import setup, find_packages
21
22 # Run "make build" if a GNUmakefile is present.
23 if os.path.isfile('GNUmakefile'):
24 print 'GNUmakefile found. Running "make build" ..'
25 p = Popen('make build', stdout=PIPE, stderr=PIPE, shell=True)
26 print p.communicate()[0]
27 if p.returncode != 0:
28 raise Exception('"make build" exited with an error: %s' % p.returncode)
29
30 setup(
31 # This ZenPack metadata should usually be edited with the Zenoss
32 # ZenPack edit page. Whenever the edit page is submitted it will
33 # overwrite the values below (the ones it knows about) with new values.
34 name=NAME,
35 version=VERSION,
36 author=AUTHOR,
37 license=LICENSE,
38
39 # This is the version spec which indicates what versions of Zenoss
40 # this ZenPack is compatible with
41 compatZenossVers=COMPAT_ZENOSS_VERS,
42
43 # previousZenPackName is a facility for telling Zenoss that the name
44 # of this ZenPack has changed. If no ZenPack with the current name is
45 # installed then a zenpack of this name if installed will be upgraded.
46 prevZenPackName=PREV_ZENPACK_NAME,
47
48 # Indicate to setuptools which namespace packages the zenpack
49 # participates in
50 namespace_packages=NAMESPACE_PACKAGES,
51
52 # Tell setuptools what packages this zenpack provides.
53 packages=find_packages(),
54
55 # Tell setuptools to figure out for itself which files to include
56 # in the binary egg when it is built.
57 include_package_data=True,
58
59 # The MANIFEST.in file is the recommended way of including additional files
60 # in your ZenPack. package_data is another.
61 #package_data = {}
62
63 # Indicate dependencies on other python modules or ZenPacks. This line
64 # is modified by zenoss when the ZenPack edit page is submitted. Zenoss
65 # tries to put add/delete the names it manages at the beginning of this
66 # list, so any manual additions should be added to the end. Things will
67 # go poorly if this line is broken into multiple lines or modified to
68 # dramatically.
69 install_requires=INSTALL_REQUIRES,
70
71 # Every ZenPack egg must define exactly one zenoss.zenpacks entry point
72 # of this form.
73 entry_points={
74 'zenoss.zenpacks': '%s = %s' % (NAME, NAME),
75 },
76
77 # All ZenPack eggs must be installed in unzipped form.
78 zip_safe=False,
79 )
Something went wrong with that request. Please try again.