X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftest%2Fpython%2Fceph%2Fsetup.py;fp=src%2Fceph%2Fsrc%2Ftest%2Fpython%2Fceph%2Fsetup.py;h=90dbb59e242c13b8c1f23a7ed16db13e511d3398;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/test/python/ceph/setup.py b/src/ceph/src/test/python/ceph/setup.py new file mode 100644 index 0000000..90dbb59 --- /dev/null +++ b/src/ceph/src/test/python/ceph/setup.py @@ -0,0 +1,27 @@ +import os +from setuptools import setup, find_packages + +# link ceph script here so we can "install" it +current_dir = os.path.abspath(os.path.dirname(__file__)) +src_dir = os.path.dirname(os.path.dirname(os.path.dirname(current_dir))) +script_path = os.path.join(src_dir, 'ceph.in') + + +def link_target(source, destination): + if not os.path.exists(destination): + try: + os.symlink(source, destination) + except (IOError, OSError) as error: + print('Ignoring linking of target: %s' % str(error)) + +link_target(script_path, 'ceph.py') + +setup( + name='ceph', + version='0.1', + description='', + author='', + author_email='', + zip_safe=False, + packages=find_packages(), +)