equal
deleted
inserted
replaced
|
1 import os,sys,glob |
|
2 from distutils.core import setup |
|
3 |
|
4 |
|
5 install_dir=os.path.join("LOLITech","PlcOpenEditor") |
|
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 listfile.append(element_path) |
|
25 |
|
26 generate("") |
|
27 |
|
28 |
|
29 setup(name='PlcOpenEditor', # Name of the executable |
|
30 version='0.1', # Version |
|
31 description='Editor for the 5 of the IEC-61131-3 languages', #description |
|
32 author='Edouard Tisserant, Laurent Bessard', |
|
33 author_email='laurent.bessard@lolitech.fr', |
|
34 url='http://www.beremiz.org', |
|
35 license='GPL', |
|
36 scripts=['plcopeneditor_postinst.py'], |
|
37 data_files=data_files, # Add files to install |
|
38 ) |