Is there a way to tell pip never to create a wheel cache of my package?
Background
I wrote a package for in-house use that sets up some symbolic links when installed using cmdclass
in the setup.py
. These post-install and post-develop triggers run fine if I install the sdist, but if I compile the package to a wheel, they do not run. To counter this, I make sure to only upload the sdist to our internal PyPI.
Problem
According to the documentation, when pip installs from an sdist it compiles it to a wheel and caches it for next time. This means that the package installs right the first time, but subsequent installs are broken.
I know I could run pip with --no-cache-dir
, but I want to be sure everyone on my team can get the package correctly without having to add flags like this. There is no situation where someone would want a wheel of this package.
Question
Is there a setting or config variable I can set in my package to tell pip never to cache it as a wheel?