]> rtime.felk.cvut.cz Git - CanFestival-3.git/blob - setup.py
fixed : deprecation warning with the module "sets" when using python 2.6
[CanFestival-3.git] / setup.py
1 import os,sys
2 from distutils.core import setup
3
4
5 install_dir=os.path.join("LOLITech","CanFestival-3")
6
7 data_files=[]
8 os.getcwd()
9 os.chdir(os.getcwd())
10
11 def generate(base_dir):
12     listfile=[]
13     if base_dir == "":
14         directory = "."
15     else:
16         directory = base_dir
17     data_files.append((os.path.join(install_dir, base_dir), listfile))
18
19     for element in os.listdir(directory):
20         element_path=os.path.join(base_dir, element)
21         if os.path.isdir(element_path):
22             generate(element_path)
23         elif os.path.isfile(element_path):
24             ext_element=os.path.splitext(element)
25             if ext_element[1] != ".o" and ext_element[1] != ".pyc":
26                 listfile.append(element_path)
27
28 generate("")
29
30
31 setup(name='CanFestival-3', # Name of the executable
32       version='0.1', # Version
33       description='Open-Source CanOpen Stack', #description
34       author='Edouard Tisserant, Laurent Bessard',
35       author_email='edouard.tisserant.lolitech.fr, laurent.bessard@lolitech.fr',
36       url='http://www.canfestival.org',
37       license='GPL',
38       scripts=['objdictedit_postinst.py'],
39       data_files=data_files, # Add files to install
40 )