Message139021
> 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. |
|
Date |
User |
Action |
Args |
2011-06-25 07:33:11 | vinay.sajip | set | recipients:
+ vinay.sajip, mhammond, fdrake, ceder, tim.golden, tarek, eric.araujo, alexis, higery |
2011-06-25 07:33:11 | vinay.sajip | set | messageid: <1308987191.56.0.420652551266.issue12394@psf.upfronthosting.co.za> |
2011-06-25 07:33:11 | vinay.sajip | link | issue12394 messages |
2011-06-25 07:33:10 | vinay.sajip | create | |
|