forked from ClusterLabs/pcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (36 loc) · 973 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
39
40
#!/usr/bin/env python
import os
from setuptools import setup, Command, find_packages
class CleanCommand(Command):
user_options = []
def initialize_options(self):
self.cwd = None
def finalize_options(self):
self.cwd = os.getcwd()
def run(self):
assert os.getcwd() == self.cwd, 'Must be in package root: %s' % self.cwd
os.system('rm -rf ./build ./dist ./*.pyc ./*.egg-info')
setup(
name='pcs',
version='0.9.155',
description='Pacemaker Configuration System',
author='Chris Feist',
author_email='[email protected]',
url='https://github.com/ClusterLabs/pcs',
packages=find_packages(),
package_data={'pcs':[
'bash_completion',
'pcs.8',
'pcs',
'test/resources/*.xml',
'test/resources/*.conf',
]},
entry_points={
'console_scripts': [
'pcs = pcs.app:main',
],
},
cmdclass={
'clean': CleanCommand,
}
)