distutils.core.setup --install-script option in Python 2.6 ?

Hello, Please excuse the repost (sent last week), but I'm hoping someone on the list can get me on-track with a distutils problem. I have just upgraded from Python 2.5 to 2.6.4 (MS Windows XP service pack 3). My setup.py scripts (based on distutils.core.setup) no longer work with the --install-script option. Here is the error: * error: option --install-script not recognized The above error occurs when passing either bdist_wininst or bdist_msi parameters to the setup.py scripts. I have been unable to locate any on-line mention of this option not being supported in Python 2.6. I apologize for missing something obvious here, but I am stuck. Thanks in advance for your feedback. -- jv

On Thu, Nov 12, 2009 at 12:31 PM, Jim Vickroy <Jim.Vickroy@noaa.gov> wrote:
Hello,
Please excuse the repost (sent last week), but I'm hoping someone on the list can get me on-track with a distutils problem.
I have just upgraded from Python 2.5 to 2.6.4 (MS Windows XP service pack 3).
My setup.py scripts (based on distutils.core.setup) no longer work with the --install-script option. Here is the error:
* error: option --install-script not recognized
Hi Jim, the option (in 2.5 and 2.6) is "--install-scripts" (notice the final 's') Regards Tarek

Tarek Ziadé wrote:
On Thu, Nov 12, 2009 at 12:31 PM, Jim Vickroy <Jim.Vickroy@noaa.gov> wrote:
Hello,
Please excuse the repost (sent last week), but I'm hoping someone on the list can get me on-track with a distutils problem.
I have just upgraded from Python 2.5 to 2.6.4 (MS Windows XP service pack 3).
My setup.py scripts (based on distutils.core.setup) no longer work with the --install-script option. Here is the error:
* error: option --install-script not recognized
Hi Jim,
the option (in 2.5 and 2.6) is "--install-scripts" (notice the final 's')
Regards Tarek
Hello Tarek, *--*install-script_*s*_ is not recognized (see below) -- at least with Python 2.6.4 on MS Windows. C:\Documents and Settings\jim.vickroy\My Documents\Projects>"D-RAP INSTALLER BUILDER.py" bdist_wininst --install-scripts=GOES-12-SXI-processor-setup-t eardown.py usage: D-RAP INSTALLER BUILDER.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: D-RAP INSTALLER BUILDER.py --help [cmd1 cmd2 ...] or: D-RAP INSTALLER BUILDER.py --help-commands or: D-RAP INSTALLER BUILDER.py cmd --help error: option --install-scripts not recognized C:\Documents and Settings\jim.vickroy\My Documents\Projects> -- jv

On Fri, Nov 13, 2009 at 4:36 PM, Jim Vickroy <Jim.Vickroy@noaa.gov> wrote: [..]
Hello Tarek,
--install-scripts is not recognized (see below) -- at least with Python 2.6.4 on MS Windows.
In Python 2.5 *and* 2.6: --install-scripts is an option for "install" --install-script is an option for "bdist_wininst" While this name coincidence is a bit annoying, bdist_wininst option is something else: --install-script basename of installation script to be run afterinstallation or before deinstallation And in install: --install-scripts installation directory for Python scripts Tarek
participants (2)
-
Jim Vickroy
-
Tarek Ziadé