Commit e2ba9ab1 authored by Nico Schottelius's avatar Nico Schottelius

add package data info

Signed-off-by: default avatarNico Schottelius <nico@brief.schottelius.org>
parent 8324c9de
include docs/changelog docs/changelog-2.1
include docs/changelog
recursive-include docs/gfx *.png *.text
recursive-include docs *.text *.html *.1 *.7
recursive-include conf *
from distutils.core import setup
#data_files=[('/usr/share/cdist', 'conf')],
# data_files=[('/tmp/cdist', ['conf'])],
import cdist
import os
def data_finder(data_dir):
entries = []
for name in os.listdir(data_dir):
entry = os.path.join(data_dir, name)
if os.path.isdir(entry):
entries.extend(data_finder(entry))
else:
entries.append(entry)
return entries
package_data = data_finder("conf")
print(package_data)
setup(
name = "cdist",
packages = ["cdist", "cdist.core", "cdist.exec", "cdist.util" ],
package_data={'cdist': package_data},
scripts = ["cdist.py"],
version = cdist.version.VERSION,
description = "A Usable Configuration Management System",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment