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