add setup.py to build windows installer
authorgreg
Tue, 15 Jan 2008 10:53:18 +0100
changeset 103 c4488f56aca1
parent 102 51367da8dc4c
child 104 340b858bf93e
add setup.py to build windows installer
setup.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.py	Tue Jan 15 10:53:18 2008 +0100
@@ -0,0 +1,35 @@
+import os,sys
+from distutils.core import setup
+
+install_dir=os.path.join("LOLITech","matiec")
+
+data_files=[]
+os.getcwd()
+os.chdir(os.getcwd())
+
+def generate(base_dir):
+    listfile=[]
+    if base_dir == "":
+        directory = "."
+    else:
+        directory = base_dir
+    data_files.append((os.path.join(install_dir, base_dir), listfile))
+
+    for element in os.listdir(directory):
+        element_path=os.path.join(base_dir, element)
+        if os.path.isdir(element_path):
+            generate(element_path)
+        elif os.path.isfile(element_path):
+            listfile.append(element_path)
+
+generate("")
+
+setup(name='MatIEC',
+      version='0.1',
+      description='IEC to C Compiler',
+      author='Mario de Sousa, Edouard Tisserant, Laurent Bessard',
+      author_email='edouard.tisserant@lolitech.fr,laurent.bessard@lolitech.fr,gregory.trelat@lolitech.fr',
+      url='http://www.beremiz.org',
+      license='GPL',
+      data_files=data_files, # Add files to install
+)
\ No newline at end of file