Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / python / ceph / setup.py
1 import os
2 from setuptools import setup, find_packages
3
4 # link ceph script here so we can "install" it
5 current_dir = os.path.abspath(os.path.dirname(__file__))
6 src_dir = os.path.dirname(os.path.dirname(os.path.dirname(current_dir)))
7 script_path = os.path.join(src_dir, 'ceph.in')
8
9
10 def link_target(source, destination):
11     if not os.path.exists(destination):
12         try:
13             os.symlink(source, destination)
14         except (IOError, OSError) as error:
15             print('Ignoring linking of target: %s' % str(error))
16
17 link_target(script_path, 'ceph.py')
18
19 setup(
20     name='ceph',
21     version='0.1',
22     description='',
23     author='',
24     author_email='',
25     zip_safe=False,
26     packages=find_packages(),
27 )