question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
pradyunsgcommented, Oct 26, 2017

Indeed.

As I understand, a documentation-only fix for this would be to add note to the documentation of --build that the TMPDIR environment variable has to be used to change the location of temporary builds that pip does.

1reaction
pradyunsgcommented, Oct 25, 2017

Hi @1byxero! Go ahead. @xavfernandez wrote a summary above.

Ping me by mentioning me on this issue if you need help. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found