py2exe/InnoSetup is the best way i found to distrib a set of python
scripts (at least on Windows).
Here is the InnoScript i used to package slune-1.0.7 (comments are in
french):
##########################################
[Setup]
;Informations générales sur l'application
AppName=Slune 1.0.7
AppVerName=Slune 1.0.7
AppVersion=1.0.7
AppPublisher=Nekeme Prod.
;AppCopyright=Copyleft © 2002 thomas paviot
AppPublisherURL=http://slune.nekeme.net
AppSupportURL=http://slune.nekeme.net
AppUpdatesURL=http://slune.nekeme.net
DefaultDirName={pf}\Nekeme\Slune
DefaultGroupName=Nekeme
LicenseFile=G:\Programmes\Python23\Lib\site-packages\slune\COPYING
;Paramètres de compression
Compression=lzma
SolidCompression=yes
;Par défaut, pas besoin d'être administrateur pour installer
;AdminPrivilegesRequired=no
PrivilegesRequired=none
;Nom du fichier généré et répertoire de destination
OutputBaseFilename=Slune-1.0.7
OutputDir=G:\Programmes\Python23\Lib\site-packages\slune\distribution
;Dans lepanneau de configuration de Windows2000/NT/XP, c'est l'icone de
slune.exe qui
;apparaît à gauche du nom du fichier pour la désinstallation
;UninstallDisplayIcon={app}\bitmaps\icons\pyMotion.ico
;Fenêtre en background
WindowResizable=false
WindowStartMaximized=true
WindowShowCaption=true
BackColorDirection=lefttoright
;AppID={36B962F1-A4B7-4BA0-A515-6CD233FE4203}
;InfoAfterFile=D:\pyMotion\CHANGELOG.txt
;[Components]
;Name: main; Description: Main Files; Types: full compact custom; Flags:
fixed
;Name: samples; Description: 3D Files; Types: full
;Name: source_code; Description: Python Source Code; Types: full custom
;Name: help; Description: Help Files; Types: full custom
[Files]
Source: G:\Programmes\Python23\Lib\site-packages\slune\dist\*.*;
DestDir: {app}; Flags : ignoreversion;
Source: G:\Programmes\Python23\Lib\site-packages\slune\dist\images\*.*;
DestDir: {app}\images; Flags : ignoreversion;
Source:
G:\Programmes\Python23\Lib\site-packages\slune\dist\locale\en\LC_MESSAGES\*.*;
DestDir: {app}\locale\en\LC_MESSAGES; Flags : ignoreversion;
Source:
G:\Programmes\Python23\Lib\site-packages\slune\dist\locale\de\LC_MESSAGES\*.*;
DestDir: {app}\locale\de\LC_MESSAGES; Flags : ignoreversion;
Source:
G:\Programmes\Python23\Lib\site-packages\slune\dist\locale\es\LC_MESSAGES\*.*;
DestDir: {app}\locale\es\LC_MESSAGES; Flags : ignoreversion;
Source:
G:\Programmes\Python23\Lib\site-packages\slune\dist\locale\it\LC_MESSAGES\*.*;
DestDir: {app}\locale\it\LC_MESSAGES; Flags : ignoreversion;
Source:
G:\Programmes\Python23\Lib\site-packages\slune\dist\locale\sl\LC_MESSAGES\*.*;
DestDir: {app}\locale\sl\LC_MESSAGES; Flags : ignoreversion;
Source:
G:\Programmes\Python23\Lib\site-packages\slune\dist\locale\fr\LC_MESSAGES\*.*;
DestDir: {app}\locale\fr\LC_MESSAGES; Flags : ignoreversion;
Source:
G:\Programmes\Python23\Lib\site-packages\slune\dist\locale\nb\LC_MESSAGES\*.*;
DestDir: {app}\locale\nb\LC_MESSAGES; Flags : ignoreversion;
Source:
G:\Programmes\Python23\Lib\site-packages\slune\dist\locale\sv\LC_MESSAGES\*.*;
DestDir: {app}\locale\sv\LC_MESSAGES; Flags : ignoreversion;
Source:
G:\Programmes\Python23\Lib\site-packages\slune\dist\materials\*.*;
DestDir: {app}\materials; Flags : ignoreversion;
Source: G:\Programmes\Python23\Lib\site-packages\slune\dist\data\*.*;
DestDir: {app}\data; Flags : ignoreversion;
Source: G:\Programmes\Python23\Lib\site-packages\slune\dist\shapes\*.*;
DestDir: {app}\shapes; Flags : ignoreversion;
Source: G:\Programmes\Python23\Lib\site-packages\slune\dist\sounds\*.*;
DestDir: {app}\sounds; Flags : ignoreversion;
Source: G:\Programmes\Python23\Lib\site-packages\slune\dist\worlds\*.*;
DestDir: {app}\worlds; Flags : ignoreversion;
[Tasks]
Name: desktopicon; Description: Create a &desktop icon;
GroupDescription: Additional icons:; MinVersion: 4,4
[Icons]
Name: {group}\Slune\Slune 1.0.7; Filename: {app}\slune.exe; WorkingDir:
{app}; Comment: Play Slune!!!; IconFileName: {app}\slune.exe
Name: {group}\Slune\Uninstall; Filename: {app}\unins000.exe
Name: {userdesktop}\Slune 1.0.7; Filename: {app}\slune.exe; WorkingDir:
{app}; MinVersion: 4,4; Tasks: desktopicon; IconFileName: {app}\slune.exe
[Run]
Filename: {app}\slune.exe; Description: Launch Slune 1.0.7; Flags:
nowait postinstall skipifsilent
[_ISTool]
Use7zip=false
###################################################################
Hope it will help you
BTW, your game is great. Good job!
Thomas
Michael Edwards a écrit :
While I'm thinking about it, does anyone have a good setup.py template
for building and installing Soya/Python applications? The built-in
methods in distutils do a great job of installing modules in
site-packages, but I'm looking more for installing an application, stuff
that you launch from your /usr/bin directory or wherever else on other
platforms.
-Mike