setup.py
changeset 103 c4488f56aca1
child 104 340b858bf93e
equal deleted inserted replaced
102:51367da8dc4c 103:c4488f56aca1
       
     1 import os,sys
       
     2 from distutils.core import setup
       
     3 
       
     4 install_dir=os.path.join("LOLITech","matiec")
       
     5 
       
     6 data_files=[]
       
     7 os.getcwd()
       
     8 os.chdir(os.getcwd())
       
     9 
       
    10 def generate(base_dir):
       
    11     listfile=[]
       
    12     if base_dir == "":
       
    13         directory = "."
       
    14     else:
       
    15         directory = base_dir
       
    16     data_files.append((os.path.join(install_dir, base_dir), listfile))
       
    17 
       
    18     for element in os.listdir(directory):
       
    19         element_path=os.path.join(base_dir, element)
       
    20         if os.path.isdir(element_path):
       
    21             generate(element_path)
       
    22         elif os.path.isfile(element_path):
       
    23             listfile.append(element_path)
       
    24 
       
    25 generate("")
       
    26 
       
    27 setup(name='MatIEC',
       
    28       version='0.1',
       
    29       description='IEC to C Compiler',
       
    30       author='Mario de Sousa, Edouard Tisserant, Laurent Bessard',
       
    31       author_email='edouard.tisserant@lolitech.fr,laurent.bessard@lolitech.fr,gregory.trelat@lolitech.fr',
       
    32       url='http://www.beremiz.org',
       
    33       license='GPL',
       
    34       data_files=data_files, # Add files to install
       
    35 )