From 47f061eef1d9c4832b9a4394e84642811356ad10 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Fri, 29 Dec 2006 01:32:46 +0000 Subject: Partial support for cross-platform generation of bdist_wininst .exe's. Unfortunately, bdist_wininst doesn't fix up #! lines, so python.exe or pythonw.exe have to be on PATH for generated scripts to work. This could probably be fixed up with a post-install script, but that's a job for another day. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053186 --- setuptools/command/bdist_wininst.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'setuptools/command/bdist_wininst.py') diff --git a/setuptools/command/bdist_wininst.py b/setuptools/command/bdist_wininst.py index 9881f3b1..d2a8a4b1 100755 --- a/setuptools/command/bdist_wininst.py +++ b/setuptools/command/bdist_wininst.py @@ -28,3 +28,10 @@ class bdist_wininst(_bdist_wininst): cmd.install_lib = None # work around distutils bug return cmd + def run(self): + self._is_running = True + try: + _bdist_wininst.run(self) + finally: + self._is_running = False + -- cgit v1.2.1