3 from distutils.core import setup
5 def copytree(src, dst, symlinks=False, ignore=None):
6 if not os.path.exists(dst):
8 for item in os.listdir(src):
9 s = os.path.join(src, item)
10 d = os.path.join(dst, item)
12 copytree(s, d, symlinks, ignore)
14 if not os.path.exists(d) or os.stat(src).st_mtime - os.stat(dst).st_mtime > 1:
17 setup(name='planetstack',
19 description='PlanetStack',
20 scripts=['planetstack/planetstack-backend.py'],
22 ('/etc/planetstack/', ['planetstack/plstackapi_config']),
23 ('/lib/systemd/system/', ['planetstack/redhat/planetstack-backend.service']),
26 copytree('planetstack/', '/opt/planetstack')