I am trying to make a system-wide installation of my Python module with setuptools.
Let's say I have a file that has to have different content depending on whether I install in production or development environment.
One way I think I found, is from Post-install script with Python setuptools . As far as I understand, I could make some additional post-install actions and in them copy the correct version of the file depending on whether it is devel or install, however, how do I know from within the method, which directories to use for source and dest?