remove some debug, remove adding dirs

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-10-29 22:56:29 +01:00
parent 63573a9797
commit 8202cd0e7a

View file

@ -1,9 +1,5 @@
from distutils.core import setup from distutils.core import setup
#data_files=[('/usr/share/cdist', 'conf')],
# data_files=[('/tmp/cdist', ['conf'])],
import cdist import cdist
import os import os
def data_finder(data_dir): def data_finder(data_dir):
@ -11,7 +7,6 @@ def data_finder(data_dir):
for name in os.listdir(data_dir): for name in os.listdir(data_dir):
entry = os.path.join(data_dir, name) entry = os.path.join(data_dir, name)
if os.path.isdir(entry): if os.path.isdir(entry):
entries.append(entry)
entries.extend(data_finder(entry)) entries.extend(data_finder(entry))
else: else:
entries.append(entry) entries.append(entry)
@ -21,11 +16,8 @@ def data_finder(data_dir):
cur = os.getcwd() cur = os.getcwd()
os.chdir("cdist") os.chdir("cdist")
package_data = data_finder("conf") package_data = data_finder("conf")
# package_dir={'cdist': 'src/mypkg'},
os.chdir(cur) os.chdir(cur)
print(package_data)
setup( setup(
name = "cdist", name = "cdist",
packages = ["cdist", "cdist.core", "cdist.exec", "cdist.util" ], packages = ["cdist", "cdist.core", "cdist.exec", "cdist.util" ],