This project is now deprecated as it is merged in the official clcache
repo. Will be kept here for reference for a short time.
See: frerich/clcache#267
This project generates a package with an executable for clcache.py that is meant to facilitate the usage of clcache
in a portable way. It is specially useful when needing to use clcache
in environments with Python 2, since newer versions of clcache
supports only Python 3.3+.
It also generates a Chocolatey package that can be downloaded and installed using choco install
. The advantage of the Chocolatey package is that only clcache.exe
is added to the PATH (the accompanying .pyd
and .dll
files SHOULD NOT be added to the PATH, because they could be accidentally loaded by other programs).
clcache.py is a little Python script which attempts to avoid unnecessary recompilation by reusing previously cached object files if possible. It is meant to be called instead of the original 'cl.exe' executable. The script analyses the command line to decide whether source code is to be compiled. If so, a cache will be queried for a previously stored object file.
After the package is published on Chocolatey it may be installed using:
choco install clcache
Or, for a specific version:
choco install clcache -version 4.0.0
In the appveyor.yml
file, change the version in the first line and in the CLCACHE_VERSION
environment variable to reflect the new version.
Create a new release on GitHub with a tag such as v4.0.0
and a name such as clcache 4.0.0
. A new build will be triggered, and the artifacts published by AppVeyor.
Artifacts are published by AppVeyor from builds in tagged commits in the master
branch. These artifacts should be attached to the GitHub release, and the .nupkg
package uploaded to Chocolatey.
It uses AppVeyor to install pyinstaller
into Python 3.4
using pip
, and then using pyinstaller
to generate clcache.exe
from the source package downloaded from clcache
official releases.
The same bundle is then also added to a Chocolatey package using choco pack
.
Note that Python 3.4
is currently used because there is an issue when running the Python 3.5
PyInstaller executable on older operating systems such as Windows Vista.
The source code of this project is - unless explicitly noted otherwise in the respective files - subject to the BSD 3-Clause License.
The only relationship of this project with clcache.py
is that it uses clcache.py
as a source and generates binary packages for it.
clcache.py
credits can be found in its page: https://github.com/frerich/clcache#credits