-
Notifications
You must be signed in to change notification settings - Fork 83
Installation
clcache is written in the Python programming language, which in principle requires no dedicated installation step. The script can be used as is. However, most approaches to integrating clcache into a build system benefit from having a callable program (e.g. an executable) available.
If you have Chocolatey installed, this is the easiest way to install clcache. Obtain the .nupkg
release and install it from a local file by using:
curl -L https://github.com/frerich/clcache/releases/download/v4.2.0/clcache.4.2.0.nupkg --output clcache.4.2.0.nupkg
choco install clcache --source=.
You can also use the NuGet package manager to install the clcache package. To do so, simply run the following command in the NuGet package manager console:
PM> Install-Package clcache
You can also use the standard Python utility pip
to install clcache. To do so, simply run the following command in a console window:
C:\>pip install clcache
You can also install the most recent development build straight from the source code repository by running:
C:\>pip install git+https://github.com/frerich/clcache.git
You can also generate a self-contained clcache.exe
file yourself using PyInstaller. If you don't have it already, installing PyInstaller is usually a matter of running
pip install pyinstaller
Afterwards, you can generate an executable by running
pyinstaller pyinstaller/clcache_main.py
This will put the resulting clcache.exe
binary and all its dependencies into
a dist\clcache
subdirectory.
Note: The --onefile
argument to PyInstaller will make it generate a single monolithic executable file which is very convenient, but also slows things down. See the Caveats wiki page for some further discussion