Am I able to configure setup.py and then install the egg through easy_install such that it can do some sort of template or inject the version number into one of my source files?
I have version = os.environ.get('BUILD_NUMBER', 0.1)
in my setup.py
and I want to put this version number into one of the source files because I need a version number to run some stuff. The reason I don’t hard code this is because the version number changes each time there is a new build.
I want to inject this version/build number into a runner script - not a Python file. This runner script is sent to /usr/local/bin by easy_install.