Setuptools download cache path

Can I set the boot cache path for setuptools? I can do this with pip by setting the environment variable PIP_DOWNLOAD_CACHE ( How to cache downloaded PIP packets ), but I do not know what to do with setuptools.

I want every time I run:

python setup.py develop 

setuptools caches downloaded files, so I don’t need to download it again.

+6
source share
1 answer

You can use the -a , -d and -f options to create and use the cache directory. This is what the help text for them says:

 --always-copy (-a) Copy all needed packages to install dir --install-dir (-d) install package to DIR --find-links (-f) additional URL(s) to search for packages 

First you use python setup.py develop -a -d CACHEDIR to cache the necessary packages in the directory of your choice, and then use this directory as a source in the future with python setup.py develop -f CACHEDIR .

You may need to add any flags that you usually use for one, the other, or both calls, depending on the corresponding flag.

+2
source

All Articles