]>
git.proxmox.com Git - ceph.git/blob - ceph/src/test/python/ceph/setup.py
2 from setuptools
import setup
, find_packages
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')
10 def link_target(source
, destination
):
11 if not os
.path
.exists(destination
):
13 os
.symlink(source
, destination
)
14 except (IOError, OSError) as error
:
15 print('Ignoring linking of target: %s' % str(error
))
17 link_target(script_path
, 'ceph.py')
26 packages
=find_packages(),