forked from taiojia/playback
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (26 loc) · 833 Bytes
/
setup.py
File metadata and controls
30 lines (26 loc) · 833 Bytes
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
import sys
import os
import shutil
try:
from setuptools import setup, find_packages
except ImportError:
print("playback now needs setuptools in order to build. Install it using"
" your package manager (usually python-setuptools) or via pip (pip"
" install setuptools).")
sys.exit(1)
setup(name='playback',
version='0.0.1',
description='OpenStack provisioning tools',
author='jiasir',
author_email='jiasir@icloud.com',
url='https://github.com/jiasir/playback/',
license='MIT License',
install_requires=['ansible'],
packages=find_packages(),
scripts=[
'bin/playback',
],
data_files=[],)
if not os.path.exists('/etc/playback'):
os.mkdir('/etc/playback')
shutil.copy('inventory/inventory', '/etc/playback/playback.conf')