[X2Go-Commits] [pyhoca-gui] 04/18: Make SCRIPT_NAME in setup.py configurable (monkey-patchable).
git-admin at x2go.org
git-admin at x2go.org
Fri Feb 7 13:26:25 CET 2014
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch brokerclient
in repository pyhoca-gui.
commit 28164909c7bbbe1f015addd92769137d36bf21b6
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Thu Feb 6 00:05:21 2014 +0100
Make SCRIPT_NAME in setup.py configurable (monkey-patchable).
---
debian/changelog | 1 +
setup.py | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index dd42756..24e7b5f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ pyhoca-gui (0.5.0.0-0x2go1) UNRELEASED; urgency=low
setting another application name than the default.
* Make default cmdline option parameters overridable before the
arg parser gets initialized.
+ * Make SCRIPT_NAME in setup.py configurable (monkey-patchable).
-- Mike Gabriel <mike.gabriel at das-netzwerkteam.de> Wed, 08 Jan 2014 21:28:37 +0100
diff --git a/setup.py b/setup.py
index f75e96e..6bb1e1b 100755
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,7 @@ import sys
import os
PROGRAM_NAME = 'PyHoca-GUI'
+SCRIPT_NAME = 'pyhoca-gui'
PROGRAM_DESC = '%s is a cross-platform (Windows, MacOS X, Linux) graphical X2Go client.' % PROGRAM_NAME
for line in file(os.path.join('pyhoca', 'wxgui', '__init__.py')).readlines():
if (line.startswith('__VERSION__')):
@@ -204,7 +205,7 @@ class build_installer_bbfreeze(build_installer, Freezer, Command):
includes=self.includes,
excludes=self.excludes,
)
- self.addScript("pyhoca-gui", gui_only=True)
+ self.addScript(SCRIPT_NAME, gui_only=True)
Freezer.__call__(self)
if self.distribution.has_data_files():
print "*** copy data files ***"
@@ -311,7 +312,7 @@ setup(
cmdclass = cmd_class,
windows = [
{
- "script": "pyhoca-gui",
+ "script": SCRIPT_NAME,
"icon_resources": [(0, os.path.normpath(PROGRAM_ICON))],
"dest_base": PROGRAM_NAME,
},
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git
More information about the x2go-commits
mailing list