…ge to True in Debian.
envar, for overriding any default use of distribute. No-op in Python 3.
… in variable's value. Fixes issue #351
This used to be silently ignored, but not since https://bitbucket.org/tarek/distribute/changeset/1c01b2620acb553fc101e3b5c8d0540d204d79a4/
…ath. If (real) Python is installed at (say) `/opt/python2.7.3` and you have a virtualenv at `/opt/python`, `change_prefix()` will try to split off `/opt/python` from a path like `/opt/python2.7.3/lib/python2.7/distutils`, leaving `2.7.3/lib/python2.7/distutils`, which is not valid and fails the assert. This patch sorts the list of prefixes by length, so the longer path is tried before its prefix.
This is required to build C extensions in Python 3.3.
The comment on line 1412 ("Some tools depend on pythonX.Y being present") is accurate on all platforms, but the block of code that ensures that pythonX.Y is present is inside a conditional that checks "if '.framework' in prefix". This commit moves the code out of the conditional so that it applies on all platforms.