forked from gluster/gstatus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (38 loc) · 1.14 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
44
#!/usr/bin/python
from setuptools import setup
import distutils.command.install_scripts
import shutil
from gstatus import version
f = open('README.md')
long_description = f.read().strip()
f.close()
# idea from http://stackoverflow.com/a/11400431/2139420
class strip_py_ext(distutils.command.install_scripts.install_scripts):
def run(self):
distutils.command.install_scripts.install_scripts.run(self)
for script in self.get_outputs():
if script.endswith(".py"):
shutil.move(script, script[:-3])
setup(
name = "gstatus",
version= version.VERSION,
description= "Show the health of the components in a glusterfs Trusted Storage Pool",
long_description = long_description,
author = "Paul Cuzner",
author_email = "[email protected]",
url = "https://github.com/gluster/gstatus",
license = "GPLv3",
install_requires=['glustercli'],
packages = [
"gstatus",
"gstatus.glusterlib",
],
entry_points={
"console_scripts": [
"gstatus = gstatus.__main__:main",
]
},
cmdclass = {
"install_scripts" : strip_py_ext
}
)