commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r10024 - trunk/gnue-common/packaging/win32


From: reinhard
Subject: [gnue] r10024 - trunk/gnue-common/packaging/win32
Date: Sat, 31 Oct 2009 13:06:30 -0500 (CDT)

Author: reinhard
Date: 2009-10-31 13:06:30 -0500 (Sat, 31 Oct 2009)
New Revision: 10024

Added:
   trunk/gnue-common/packaging/win32/README.runtime
   trunk/gnue-common/packaging/win32/gnue-runtime.iss
   trunk/gnue-common/packaging/win32/mk-runtime.cmd
   trunk/gnue-common/packaging/win32/setup-runtime.py
Removed:
   trunk/gnue-common/packaging/win32/GNUe-Runtime-Environment.iss
   trunk/gnue-common/packaging/win32/links
Log:
Updated packaging info for gnue-runtime-environment.


Deleted: trunk/gnue-common/packaging/win32/GNUe-Runtime-Environment.iss
===================================================================
--- trunk/gnue-common/packaging/win32/GNUe-Runtime-Environment.iss      
2009-10-31 00:33:05 UTC (rev 10023)
+++ trunk/gnue-common/packaging/win32/GNUe-Runtime-Environment.iss      
2009-10-31 18:06:30 UTC (rev 10024)
@@ -1,20 +0,0 @@
-; Script generated by the Inno Setup Script Wizard.
-; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
-
-[Setup]
-AppId=GNUe-Tools
-AppName=GNUe-Runtime-Environment
-AppVerName=GNUe-Runtime-Environment-2005.09.30
-AppPublisher=GNU Enterprise
-AppPublisherURL=http://www.gnuenterprise.org
-AppSupportURL=http://www.gnuenterprise.org
-AppUpdatesURL=http://www.gnuenterprise.org
-DefaultDirName={pf}\GNUe\
-DefaultGroupName=GNUe
-AllowNoIcons=true
-OutputBaseFilename=gnue-runtime-environment-2005.09.30
-
-[Files]
-Source: c:\gnue\bin\*.dll; DestDir: {app}\bin; Flags: ignoreversion
-Source: c:\gnue\bin\*.pyd; DestDir: {app}\bin; Flags: ignoreversion
-Source: c:\gnue\bin\*.zip; DestDir: {app}\bin; Flags: ignoreversion

Copied: trunk/gnue-common/packaging/win32/README.runtime (from rev 10000, 
trunk/gnue-common/packaging/win32/links)
===================================================================
--- trunk/gnue-common/packaging/win32/README.runtime                            
(rev 0)
+++ trunk/gnue-common/packaging/win32/README.runtime    2009-10-31 18:06:30 UTC 
(rev 10024)
@@ -0,0 +1,35 @@
+Packaging gnue-runtime-environment
+==================================
+
+Prerequisites
+-------------
+
+URL                                                     Version used
+------------------------------------------------------------------------------
+http://www.python.org/download/                         2.5.4
+http://sourceforge.net/projects/pywin32/                215.win32-py2.5
+http://www.pythonware.com/products/pil/                 1.1.6.win32-py2.5
+http://www.reportlab.org/downloads.html                 2.3.win32-py2.5
+http://www.egenix.com/products/python/mxBase/           3.1.2.win32-py2.5
+
+http://www.wxpython.org/download.php                    unicode-2.8.10.1-py2.5
+
+http://sourceforge.net/projects/kinterbasdb             3.2.win32-FB-2.0-py2.5
+http://sourceforge.net/projects/mysql-python            1.2.2.win32-py2.5
+http://stickpeople.com/projects/python/win-psycopg/     2.0.13.win32-py2.5
+http://code.google.com/p/pysqlite/downloads/list        2.5.5.win32-py2.5
+
+http://sourceforge.net/projects/py2exe/
+
+http://www.jrsoftware.org/isdl.php
+  (download QuickStart Pack, it contains the needed ISTool)
+
+
+Creation of the installation file
+---------------------------------
+
+1. Download gnue-common-*.zip and unpack it into a temporary folder.
+
+2. Change to the packaging/win32 directory and run mk-runtime.cmd
+
+3. The installer .exe will be generated in that directory.

Copied: trunk/gnue-common/packaging/win32/gnue-runtime.iss (from rev 10000, 
trunk/gnue-common/packaging/win32/GNUe-Runtime-Environment.iss)
===================================================================
--- trunk/gnue-common/packaging/win32/gnue-runtime.iss                          
(rev 0)
+++ trunk/gnue-common/packaging/win32/gnue-runtime.iss  2009-10-31 18:06:30 UTC 
(rev 10024)
@@ -0,0 +1,21 @@
+; Script generated by the Inno Setup Script Wizard.
+; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
+
+[Setup]
+AppId=GNUe-Tools
+AppName=GNUe Runtime Environment
+AppVerName=GNUe Runtime Environment 2009.10.31.win32-py2.5
+AppPublisher=GNU Enterprise
+AppPublisherURL=http://www.gnuenterprise.org
+AppSupportURL=http://www.gnuenterprise.org
+AppUpdatesURL=http://www.gnuenterprise.org
+DefaultDirName={pf}\GNUe\
+DefaultGroupName=GNUe
+AllowNoIcons=true
+OutputDir=C:\GNUE\dist
+OutputBaseFilename=gnue-runtime-2009.10.31.win32-py2.5
+
+[Files]
+Source: c:\gnue\bin\*.dll; DestDir: {app}\bin; Flags: ignoreversion
+Source: c:\gnue\bin\*.pyd; DestDir: {app}\bin; Flags: ignoreversion
+Source: c:\gnue\bin\*.zip; DestDir: {app}\bin; Flags: ignoreversion

Deleted: trunk/gnue-common/packaging/win32/links
===================================================================
--- trunk/gnue-common/packaging/win32/links     2009-10-31 00:33:05 UTC (rev 
10023)
+++ trunk/gnue-common/packaging/win32/links     2009-10-31 18:06:30 UTC (rev 
10024)
@@ -1,45 +0,0 @@
-
-----------------------------------------------------------------------------
-Links for GNUe-Runtime-Environment:
-
-http://python.org
-
-https://sourceforge.net/projects/pywin32/
-
-http://wxpython.org/
-
-http://www.egenix.com/files/python/eGenix-mx-Extensions.html#Download-mxBASE
-
-http://adodbapi.sourceforge.net/
-
-http://sourceforge.net/projects/mysql-python
-
-http://pypgsql.sourceforge.net/
-
-http://stickpeople.com/projects/python/win-psycopg/
-
-http://kinterbasdb.sourceforge.net/
-
-http://www.mysql.com/products/maxdb/sapdbapi.html
-
-http://sourceforge.net/projects/reportlab/
-
-http://users.skynet.be/sbi/libxml-python/ (seems to be broken)
-or
-http://xmlsoft.org/sources/win32/python
-
-http://www.pythonware.com/products/pil/
-
-http://pyxml.sourceforge.net
-
-http://initd.org/tracker/pysqlite
-
-
----------------------------------------
-Other links (for future):
-
-http://sourceforge.net/projects/cx-oracle/
-
-http://pymssql.sourceforge.net/
-
-http://www.pcpm.ucl.ac.be/~gustin/win32_ports/pygtk.html

Added: trunk/gnue-common/packaging/win32/mk-runtime.cmd
===================================================================
--- trunk/gnue-common/packaging/win32/mk-runtime.cmd                            
(rev 0)
+++ trunk/gnue-common/packaging/win32/mk-runtime.cmd    2009-10-31 18:06:30 UTC 
(rev 10024)
@@ -0,0 +1,29 @@
address@hidden OFF
+REM ---------------------------------------------------------------------------
+REM Create an Installer Package
+REM
+REM $Id: setup.cmd 9736 2007-06-25 14:56:51Z johannes $
+REM ---------------------------------------------------------------------------
+
+REM ---------------------------------------------------------------------------
+REM Prepare the build environment
+REM ---------------------------------------------------------------------------
+
+SET GNUE_PATH="C:\GNUE"
+
+IF EXIST %GNUE_PATH% (
+   RMDIR /S /Q %GNUE_PATH%
+)
+
+REM ---------------------------------------------------------------------------
+REM Create executable
+REM ---------------------------------------------------------------------------
+
+C:\PYTHON25\PYTHON setup-runtime.py py2exe -c -d %GNUE_PATH%\BIN
+
+REM ---------------------------------------------------------------------------
+REM Clean up build environment
+REM ---------------------------------------------------------------------------
+
+COPY %GNUE_PATH%\dist\*.exe .
+RMDIR /S /Q %GNUE_PATH%

Added: trunk/gnue-common/packaging/win32/setup-runtime.py
===================================================================
--- trunk/gnue-common/packaging/win32/setup-runtime.py                          
(rev 0)
+++ trunk/gnue-common/packaging/win32/setup-runtime.py  2009-10-31 18:06:30 UTC 
(rev 10024)
@@ -0,0 +1,98 @@
+# GNU Enterprise Runtime Environment - Setup Script for py2exe
+#
+# Copyright 2009 Free Software Foundation
+#
+# This file is part of GNU Enterprise
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or (at your option) any later version.
+#
+# GNU Enterprise 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# $Id$
+
+import os
+import sys
+import py2exe
+import win32api
+import win32con
+
+from distutils.core import setup
+
+ISS_FILE = 'gnue-runtime.iss'
+
+# -----------------------------------------------------------------------------
+# Examine the registry to find out where the InnoSetup compiler is located
+# -----------------------------------------------------------------------------
+
+def get_istool():
+    root = win32con.HKEY_CLASSES_ROOT
+    item = "InnoSetupScriptFile\\shell\\OpenWithISTool"
+    try:
+        path = None
+        key = win32api.RegOpenKeyEx(root, item, 0, win32con.KEY_READ)
+        value = win32api.RegQueryValue(key, "command")
+        if isinstance(value, basestring):
+            path = value.split(' ', 1)[0]
+    except:
+        pass
+
+    return path
+
+       
+# -----------------------------------------------------------------------------
+# Main routine
+# -----------------------------------------------------------------------------
+
+setup(options={'py2exe': {
+         'includes': [
+             'string', 're', 'struct', 'difflib', 'StringIO', 'cStringIO',
+             'textwrap', 'codecs', 'unicodedata', 'stringprep', 'fpformat',
+             'datetime', 'calendar', 'collections', 'heapq', 'bisect', 'array',
+             'sets', 'sched', 'mutex', 'Queue', 'weakref', 'UserDict',
+             'UserList', 'UserString', 'types', 'new', 'copy', 'pprint',
+             'repr', 'math', 'cmath', 'decimal', 'random', 'itertools',
+             'functools', 'operator', 'email', 'mailcap', 'mailbox', 'mhlib',
+             'mimetools', 'mimetypes', 'MimeWriter', 'mimify', 'multifile',
+             'rfc822', 'base64', 'binhex', 'binascii', 'quopri', 'uu',
+             'HTMLParser', 'sgmllib', 'htmllib', 'htmlentitydefs', 'csv',
+             'ConfigParser', 'robotparser', 'netrc', 'xdrlib', 'hashlib',
+             'hmac', 'md5', 'sha', 'fileinput', 'stat', 'statvfs', 'filecmp',
+             'tempfile', 'glob', 'fnmatch', 'linecache', 'shutil', 'dircache',
+             'zlib', 'gzip', 'bz2', 'zipfile', 'tarfile', 'pickle', 'cPickle',
+             'copy_reg', 'shelve', 'marshal', 'anydbm', 'whichdb', 'dbhash',
+             'bsddb', 'dumbdbm', 'os', 'time', 'optparse', 'getopt', 'logging',
+             'getpass', 'curses', 'platform', 'errno', 'ctypes', 'select',
+             'thread', 'threading', 'dummy_thread', 'dummy_threading', 'mmap',
+             'rlcompleter', 'subprocess', 'socket', 'signal', 'popen2',
+             'asyncore', 'asynchat', 'webbrowser', 'cgi', 'cgitb', 'wsgiref',
+             'urllib', 'urllib2', 'httplib', 'ftplib', 'gopherlib', 'poplib',
+             'imaplib', 'nntplib', 'smtplib', 'smtpd', 'telnetlib', 'uuid',
+             'urlparse', 'SocketServer', 'BaseHTTPServer', 'SimpleHTTPServer',
+             'CGIHTTPServer', 'cookielib', 'Cookie', 'xmlrpclib',
+             'SimpleXMLRPCServer', 'DocXMLRPCServer', 'audioop', 'imageop',
+             'aifc', 'sunau', 'wave', 'chunk', 'colorsys', 'rgbimg', 'imghdr',
+             'sndhdr', 'gettext', 'locale', 'formatter'],
+         'packages': [
+             'curses', 'logging', 'sqlite3', 'xml', 'win32api', 'win32con',
+             'PIL', 'reportlab', 'mx', 'PIL', 'wx', 'kinterbasdb', 'MySQLdb',
+             'psycopg2', 'pysqlite2'],
+         'dll_excludes': ['tcl84.dll', 'tk84.dll', 'fbclient.dll']}})
+  
+istool = get_istool()
+if not istool:
+    print "Cannot find ISTool.exe"
+    sys.exit(1)
+
+cmd = istool + ' -compile gnue-runtime.iss'
+os.system(cmd)


Property changes on: trunk/gnue-common/packaging/win32/setup-runtime.py
___________________________________________________________________
Name: svn:keywords
   + Id





reply via email to

[Prev in Thread] Current Thread [Next in Thread]