Skip to content

Commit f038fe4

Browse files
1byxeropradyunsg
authored andcommitted
Add a note about temporary directories to --build help text (#4944)
Document that an initial build occurs in a temporary directory, even when --build is specified.
1 parent 729990c commit f038fe4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

news/4262.doc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added documentation on usage of --build command line option

src/pip/_internal/cmdoptions.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@ def only_binary():
437437
'-b', '--build', '--build-dir', '--build-directory',
438438
dest='build_dir',
439439
metavar='dir',
440-
help='Directory to unpack packages into and build in.'
440+
help='Directory to unpack packages into and build in. Note that '
441+
'an initial build still takes place in a temporary directory. '
442+
'The location of temporary directories can be controlled by setting '
443+
'the TMPDIR environment variable (TEMP on Windows) appropriately.'
441444
) # type: Any
442445

443446
ignore_requires_python = partial(

0 commit comments

Comments
 (0)