[chronojump] Add script to compile the firmware updater



commit 063cd45e13b5ba8c5179cfcd0d472244ee9964b4
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Jun 4 00:11:21 2010 +0200

    Add script to compile the firmware updater

 chronopic-firmware/pydownloader-chronopic/README   |   19 ++++++
 .../pydownloader-chronopic/msvcp71.dll             |  Bin 0 -> 499712 bytes
 chronopic-firmware/pydownloader-chronopic/setup.py |   67 ++++++++++++++++++++
 3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/chronopic-firmware/pydownloader-chronopic/README b/chronopic-firmware/pydownloader-chronopic/README
new file mode 100644
index 0000000..813a072
--- /dev/null
+++ b/chronopic-firmware/pydownloader-chronopic/README
@@ -0,0 +1,19 @@
+System setup
+------------
+
+  Packages requiered:
+    * Python 2.5
+    * pywin32 (http://www.iearobotics.com/downloads/pywin32-210.win32-py2.5.exe)
+    * py2exe (http://www.py2exe.org/)
+    * wxPython (http://sourceforge.net/projects/wxpython/files/wxPython/2.8.11.0/wxPython2.8-win32-unicode-2.8.11.0-py25.exe/download)
+    * pyserial (http://sourceforge.net/projects/pyserial/files/pyserial/2.5-rc2/pyserial-2.5-rc2.win32.exe/download) 
+
+Build binary
+------------
+
+  Run 'python setup.py'
+
+Deploy/Distribute
+-----------------
+
+  Copy all the files in the 'dist' folder to the 'bin' folder in the deployment dir.
diff --git a/chronopic-firmware/pydownloader-chronopic/msvcp71.dll b/chronopic-firmware/pydownloader-chronopic/msvcp71.dll
new file mode 100644
index 0000000..9ed0d17
Binary files /dev/null and b/chronopic-firmware/pydownloader-chronopic/msvcp71.dll differ
diff --git a/chronopic-firmware/pydownloader-chronopic/setup.py b/chronopic-firmware/pydownloader-chronopic/setup.py
new file mode 100644
index 0000000..a45b6e0
--- /dev/null
+++ b/chronopic-firmware/pydownloader-chronopic/setup.py
@@ -0,0 +1,67 @@
+#!/usr/bin/env python
+# chronojump
+#
+# Copyright (c) 2010, Andoni Morales Alastruey <ylatuya gmail com>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA
+
+from distutils.core import setup
+import sys
+import shutil
+
+sys.argv = [sys.argv[0], 'py2exe']
+
+try:
+    import py2exe
+except:
+    print "Could not import 'py2exe', py2exe is not installed in your system."
+    exit(1)
+
+try:
+    import wx
+except:
+    print "Could not import 'wx', wxPython is not installed in your system."
+    exit(1)
+
+try:
+    import serial
+except:
+    print "Could not import 'serial', pyserial is not installed in your system."
+    exit(1)
+
+setup(
+	name = 'ChonopicUpdater',
+        description = 'Chronopic firmware updater',
+        version = '0.0.1',
+
+        windows = [
+                     {
+                        'script': 'pydownloader-wx.py',
+                        #'icon_resources': [(1, "chronojump.ico")],
+                     }
+                 ],
+
+        options = {
+                     'py2exe': {
+                       'packages':'pydownloader-wx',
+                       'includes': 'wx, serial',
+                     }
+                  },
+
+            zipfile = None,
+        )
+
+shutil.copy ("msvcp71.dll", "dist/msvcp71.dll")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]