For a source package based on setup tools, setup.py is executed with a minimal environment and can run arbitrary code.
Given how often the python community already deals with breaking changes, it shouldn't be much different for pip to adopt saner defaults in a new major version.