Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Installation

Frerich Raabe edited this page Sep 6, 2018 · 15 revisions

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.

Installing an executable file via Chocolatey

This appears to be defunct right now.

If you have Chocolatey installed, this is the easiest way to install clcache. Simply run

choco install clcache

The package is automatically generated using AppVeyor by the ESSS/clcache-builder project.

Installing an executable file via Nuget

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

Installing an executable via pip

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 ccache

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

Generating an executable via PyInstaller

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 clcache.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

Clone this wiki locally