greg@85: import os,sys,glob greg@85: from distutils.core import setup greg@85: greg@85: greg@85: install_dir=os.path.join("LOLITech","beremiz") greg@85: greg@85: data_files=[] greg@85: os.getcwd() greg@85: os.chdir(os.getcwd()) greg@85: greg@85: def generate(base_dir): greg@85: listfile=[] greg@85: if base_dir == "": greg@85: directory = "." greg@85: else: greg@85: directory = base_dir greg@85: data_files.append((os.path.join(install_dir, base_dir), listfile)) greg@85: greg@85: for element in os.listdir(directory): greg@85: element_path=os.path.join(base_dir, element) greg@85: if os.path.isdir(element_path): greg@85: generate(element_path) greg@85: elif os.path.isfile(element_path): greg@85: listfile.append(element_path) greg@85: greg@85: generate("") greg@85: greg@85: greg@85: setup(name='Beremiz', greg@85: version='0.1', greg@85: description='Open Source framework for automation', greg@85: author='Edouard Tisserant, Laurent Bessard', greg@85: author_email='edouard.tisserant@lolitech.fr,laurent.bessard@lolitech.fr,gregory.trelat@lolitech.fr', greg@85: url='http://www.beremiz.org', greg@85: license='GPL', greg@85: windows=["Beremiz.py"], greg@85: scripts=['beremiz_postinst.py'], greg@85: data_files=data_files, # Add files to install greg@85: )