document how to set tmpdir
See original GitHub issue- Pip version: 9.0.1
- Python version: 3.5.3
- Operating system: Linux
Description:
My /tmp
directory is on a partition without enough space to build a (big) package. From the documentation (and unfamiliarity with pip) I expected that specifying --build
to another directory would move all of pip’s temporary building activity to that directory:
pip3 install --build /lots/of/space thepackage
Of course, it did not.
Eventually I found out that setting TMPDIR
to the desired directory would do it (in bash).
I recommend providing an option to specify the tmpdir, or (maybe better) saying something in the documentation about how to do this. Perhaps, by adding to the documentation for --build
something like perhaps: “The initial build will still take place in an OS-specified temporary directory (change this by setting TMPDIR).”
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:13 (11 by maintainers)
Top Results From Across the Web
Setting the TMPDIR environment variable (Linux, UNIX) - IBM
To set the TMPDIR environment variable, specify a directory that is accessible to the user ID that runs the replication or publishing programs....
Read more >How to set the TMPDIR environment variable to another ...
Try unset TMPDIR instead of export TMPDIR= . An empty string is not a good default for TMPDIR. – ceving. Oct 27, 2014...
Read more >2.13.9 TMPDIR (Sun Studio 12: C User's Guide)
You can specify another directory by setting the environment variable TMPDIR to the directory of your choice. However, if TMPDIR is not a...
Read more >TMP and TMPDIR environment variables for ... - Arm Developer
On Red Hat Linux platforms, the environment variable TMPDIR is specifies the directory to be used for temporary files. If TMPDIR is not...
Read more >How to change default /tmp to /home/user/tmp - Server Fault
To make it a true tmp directory (as in the files go away when the session is ... Java uses the system property...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Indeed.
As I understand, a documentation-only fix for this would be to add note to the documentation of
--build
that theTMPDIR
environment variable has to be used to change the location of temporary builds that pip does.Hi @1byxero! Go ahead. @xavfernandez wrote a summary above.
Ping me by mentioning me on this issue if you need help. 😃