1 #!/usr/bin/env python2.5
4 Setup script, setup.py, is used to create installable packet from Python project.
5 For more information see http://docs.python.org/distutils/setupscript.html
7 This script with Makefile is used to generate the Debian package.
10 from distutils.core import setup
17 # Executables. These files will be installed into bin folder (example /usr/local/bin).
18 scripts = ['src/FeedingIt']
22 # Included packages from source directory.
25 package_dir = {'' : source_dir}
27 def path_to_package(base_dir, path):
29 Convert directory path to package name.
31 head, tail = os.path.split(path)
33 if head == '' or head == base_dir:
36 return path_to_package(base_dir, head) + "." + tail
40 Append all packages from source_dir ('src').
42 for dirpath, dirnames, filenames in os.walk(source_dir):
43 if "__init__.py" in filenames:
44 packages.append(path_to_package(source_dir, dirpath))
52 package_dir = package_dir,
54 data_files = data_files