This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients alexis, ceder, eric.araujo, fdrake, higery, mhammond, tarek, tim.golden, vinay.sajip
Date 2011-06-25.07:33:10
SpamBayes Score 2.8231077e-09
Marked as misclassified No
Message-id <1308987191.56.0.420652551266.issue12394@psf.upfronthosting.co.za>
In-reply-to
Content
> In the setup.cfg files, scripts will now be a mapping of names to
> callables, like the setuptools scripts and gui_scripts entry points:
>
> scripts =
>     sphinx-build = sphinx.build.run

> On UNIX, a Python script named sphinx-build will be created, on
> Windows, a binary sphinx-build.exe will be created.

Perhaps some mechanism needs to be provided to indicate additional processing options per script line:

scripts =
    script-name = path.to.callable opt1 opt2 opt3

One specific practical use of this is to determine whether the Windows version will launch using the text mode launcher or the GUI mode launcher. For example:

scripts =
    sphinx-build = sphinx.build.run # No options => text-mode
    sphinx-gui = sphinx.gui.run win # Option "win" => gui-mode

This seems more future proof than an approach like providing for a separate gui-scripts entry.
History
Date User Action Args
2011-06-25 07:33:11vinay.sajipsetrecipients: + vinay.sajip, mhammond, fdrake, ceder, tim.golden, tarek, eric.araujo, alexis, higery
2011-06-25 07:33:11vinay.sajipsetmessageid: <1308987191.56.0.420652551266.issue12394@psf.upfronthosting.co.za>
2011-06-25 07:33:11vinay.sajiplinkissue12394 messages
2011-06-25 07:33:10vinay.sajipcreate