Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a021aca

Browse files
committed
Changed '\option' to '\longprogramopt' wherever it referred to a command-line
option.
1 parent ff9ea48 commit a021aca

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

Doc/dist/dist.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ \section{Creating a Source Distribution}
356356
\lineii{Unix}{gzipped tar file (\file{.tar.gz})}
357357
\lineii{Windows}{zip file}
358358
\end{tableii}
359-
You can specify as many formats as you like using the \option{--formats}
359+
You can specify as many formats as you like using the \longprogramopt{formats}
360360
option, for example:
361361
\begin{verbatim}
362362
python setup.py sdist --formats=gztar,zip
@@ -486,10 +486,10 @@ \subsection{Manifest-related options}
486486
\begin{verbatim}
487487
python setup.py sdist --manifest-only
488488
\end{verbatim}
489-
(\option{--manifest-only} implies \option{--force-manifest}.)
489+
(\longprogramopt{manifest-only} implies \longprogramopt{force-manifest}.)
490490

491491
If you don't want to use the default file set, you can supply the
492-
\option{--no-defaults} option. If you use \option{--no-defaults} and
492+
\longprogramopt{no-defaults} option. If you use \longprogramopt{no-defaults} and
493493
don't supply a manifest template (or it's empty, or nothing matches the
494494
patterns in it), then your source distribution will be empty.
495495

@@ -547,7 +547,7 @@ \section{Creating Built Distributions}
547547

548548
\XXX{filenames are inaccurate here!}
549549

550-
The \command{bdist} command has a \option{--format} option, similar to
550+
The \command{bdist} command has a \longprogramopt{format} option, similar to
551551
the \command{sdist} command, that you can use to select which formats to
552552
generate: for example,
553553
\begin{verbatim}
@@ -580,7 +580,7 @@ \section{Creating Built Distributions}
580580
\end{description}
581581

582582
You don't have to use the \command{bdist} command with the
583-
\option{--formats} option; you can also use the command that directly
583+
\longprogramopt{formats} option; you can also use the command that directly
584584
implements the format you're interested in. Many of these
585585
\command{bdist} ``sub-commands'' actually generate several similar
586586
formats; for instance, the \command{bdist\_dumb} command generates all

Doc/inst/inst.tex

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ \subsection{How building works}
219219
the files to install into a \emph{build directory}. By default, this is
220220
\file{build} under the distribution root; if you're excessively
221221
concerned with speed, or want to keep the source tree pristine, you can
222-
change the build directory with the \option{--build-base} option. For
222+
change the build directory with the \longprogramopt{build-base} option. For
223223
example:
224224
\begin{verbatim}
225225
python setup.py build --build-base=/tmp/pybuild/foo-1.0
@@ -342,16 +342,16 @@ \subsection{How installation works}
342342
{Override option}
343343
\lineiii{pure module distribution}
344344
{\filevar{#1}\filenq{#2}}
345-
{\option{--install-purelib}}
345+
{\longprogramopt{install-purelib}}
346346
\lineiii{non-pure module distribution}
347347
{\filevar{#3}\filenq{#4}}
348-
{\option{--install-platlib}}
348+
{\longprogramopt{install-platlib}}
349349
\lineiii{scripts}
350350
{\filevar{#5}\filenq{#6}}
351-
{\option{--install-scripts}}
351+
{\longprogramopt{install-scripts}}
352352
\lineiii{data}
353353
{\filevar{#7}\filenq{#8}}
354-
{\option{--install-data}}
354+
{\longprogramopt{install-data}}
355355
\end{tableiii}}
356356

357357
\section{Alternate Installation}
@@ -390,14 +390,14 @@ \subsection{Alternate installation: Unix (the home scheme)}
390390
\begin{verbatim}
391391
python setup.py install --home=<dir>
392392
\end{verbatim}
393-
where you can supply any directory you like for the \option{home}
393+
where you can supply any directory you like for the \longprogramopt{home}
394394
option. Lazy typists can just type a tilde (\code{\tilde}); the
395395
\command{install} command will expand this to your home directory:
396396
\begin{verbatim}
397397
python setup.py install --home=~
398398
\end{verbatim}
399399

400-
The \option{home} option defines the installation base directory. Files
400+
The \longprogramopt{home} option defines the installation base directory. Files
401401
are installed to the following directories under the installation base
402402
as follows:
403403
\installscheme{home}{/lib/python}
@@ -438,27 +438,27 @@ \subsection{Alternate installation: Unix (the prefix scheme)}
438438
/usr/local/bin/python setup.py install --prefix=/mnt/@server/export
439439
\end{verbatim}
440440

441-
In either case, the \option{prefix} option defines the installation
442-
base, and the \option{exec-prefix} option defines the platform-specific
441+
In either case, the \longprogramopt{prefix} option defines the installation
442+
base, and the \longprogramopt{exec-prefix} option defines the platform-specific
443443
installation base, which is used for platform-specific files.
444444
(Currently, this just means non-pure module distributions, but could be
445445
expanded to C libraries, binary executables, etc.) If
446-
\option{exec-prefix} is not supplied, it defaults to \option{prefix}.
446+
\longprogramopt{exec-prefix} is not supplied, it defaults to \longprogramopt{prefix}.
447447
Files are installed as follows:
448448

449449
\installscheme{prefix}{/lib/python1.\filevar{X}/site-packages}
450450
{exec-prefix}{/lib/python1.\filevar{X}/site-packages}
451451
{prefix}{/bin}
452452
{prefix}{/share}
453453

454-
There is no requirement that \option{prefix} or \option{exec-prefix}
454+
There is no requirement that \longprogramopt{prefix} or \longprogramopt{exec-prefix}
455455
actually point to an alternate Python installation; if the directories
456456
listed above do not already exist, they are created at installation
457457
time.
458458

459459
Incidentally, the real reason the prefix scheme is important is simply
460460
that a standard Unix installation uses the prefix scheme, but with
461-
\option{prefix} and \option{exec-prefix} supplied by Python itself (as
461+
\longprogramopt{prefix} and \longprogramopt{exec-prefix} supplied by Python itself (as
462462
\code{sys.prefix} and \code{sys.exec\_prefix}). Thus, you might think
463463
you'll never use the prefix scheme, but every time you run \code{python
464464
setup.py install} without any other options, you're using it.
@@ -472,7 +472,7 @@ \subsection{Alternate installation: Unix (the prefix scheme)}
472472
interpreter used to build them. The best way to do this is to ensure
473473
that the two interpreters are the same version of Python (possibly
474474
different builds, or possibly copies of the same build). (Of course, if
475-
your \option{prefix} and \option{exec-prefix} don't even point to an
475+
your \longprogramopt{prefix} and \longprogramopt{exec-prefix} don't even point to an
476476
alternate Python installation, this is immaterial.)
477477

478478

@@ -481,17 +481,17 @@ \subsection{Alternate installation: Windows}
481481

482482
Since Windows has no conception of a user's home directory, and since
483483
the standard Python installation under Windows is simpler than that
484-
under Unix, there's no point in having separate \option{prefix} and
485-
\option{home} options. Just use the \option{prefix} option to specify
484+
under Unix, there's no point in having separate \longprogramopt{prefix} and
485+
\longprogramopt{home} options. Just use the \longprogramopt{prefix} option to specify
486486
a base directory, e.g.
487487
\begin{verbatim}
488488
python setup.py install --prefix="\Temp\Python"
489489
\end{verbatim}
490490
to install modules to the \file{\bslash{}Temp} directory on the current
491491
drive.
492492

493-
The installation base is defined by the \option{prefix} option; the
494-
\option{exec-prefix} option is not supported under Windows. Files are
493+
The installation base is defined by the \longprogramopt{prefix} option; the
494+
\longprogramopt{exec-prefix} option is not supported under Windows. Files are
495495
installed as follows:
496496
\installscheme{prefix}{}
497497
{prefix}{}
@@ -504,7 +504,7 @@ \subsection{Alternate installation: Mac~OS}
504504

505505
Like Windows, Mac~OS has no notion of home directories (or even of
506506
users), and a fairly simple standard Python installation. Thus, only a
507-
\option{prefix} option is needed. It defines the installation base, and
507+
\longprogramopt{prefix} option is needed. It defines the installation base, and
508508
files are installed under it as follows:
509509

510510
\XXX{how do MacPython users run the interpreter with command-line args?}
@@ -541,14 +541,14 @@ \section{Custom Installation}
541541
be relative, absolute, or explicitly defined in terms of one of the
542542
installation base directories. (There are two installation base
543543
directories, and they are normally the same---they only differ when you
544-
use the Unix ``prefix scheme'' and supply different \option{prefix} and
545-
\option{exec-prefix} options.)
544+
use the Unix ``prefix scheme'' and supply different \longprogramopt{prefix} and
545+
\longprogramopt{exec-prefix} options.)
546546

547547
For example, say you're installing a module distribution to your home
548548
directory under Unix---but you want scripts to go in
549549
\file{\tilde/scripts} rather than \file{\tilde/bin}. As you might
550550
expect, you can override this directory with the
551-
\option{install-scripts} option; in this case, it makes most sense to
551+
\longprogramopt{install-scripts} option; in this case, it makes most sense to
552552
supply a relative path, which will be interpreted relative to the
553553
installation base directory (your home directory, in this case):
554554
\begin{verbatim}
@@ -559,7 +559,7 @@ \section{Custom Installation}
559559
installed with a prefix of \file{/usr/local/python}, so under a standard
560560
installation scripts will wind up in \file{/usr/local/python/bin}. If
561561
you want them in \file{/usr/local/bin} instead, you would supply this
562-
absolute directory for the \option{install-scripts} option:
562+
absolute directory for the \longprogramopt{install-scripts} option:
563563
\begin{verbatim}
564564
python setup.py install --install-scripts=/usr/local/bin
565565
\end{verbatim}

0 commit comments

Comments
 (0)