greg@148: import os,sys,glob greg@148: from distutils.core import setup greg@148: greg@148: greg@149: install_dir=os.path.join("LOLITech","plcopeneditor") greg@148: greg@148: data_files=[] greg@148: os.getcwd() greg@148: os.chdir(os.getcwd()) greg@148: greg@148: def generate(base_dir): greg@148: listfile=[] greg@148: if base_dir == "": greg@148: directory = "." greg@148: else: greg@148: directory = base_dir greg@148: data_files.append((os.path.join(install_dir, base_dir), listfile)) greg@148: greg@148: for element in os.listdir(directory): greg@148: element_path=os.path.join(base_dir, element) greg@148: if os.path.isdir(element_path): greg@148: generate(element_path) greg@148: elif os.path.isfile(element_path): greg@148: listfile.append(element_path) greg@148: greg@148: generate("") greg@148: greg@148: greg@148: setup(name='PlcOpenEditor', # Name of the executable greg@148: version='0.1', # Version greg@148: description='Editor for the 5 of the IEC-61131-3 languages', #description greg@148: author='Edouard Tisserant, Laurent Bessard', greg@148: author_email='laurent.bessard@lolitech.fr', greg@148: url='http://www.beremiz.org', greg@148: license='GPL', greg@148: scripts=['plcopeneditor_postinst.py'], greg@148: data_files=data_files, # Add files to install greg@148: )