Added a special-case so we always find an implementation of Python
commit8365f9fe3ac0d7e6c9ee7f92a633228a92d4084d
authorThomas Leonard <talex5@gmail.com>
Sun, 20 Mar 2011 14:14:57 +0000 (20 14:14 +0000)
committerThomas Leonard <talex5@gmail.com>
Sun, 20 Mar 2011 14:26:40 +0000 (20 14:26 +0000)
tree4d30ce909ede58d454c1fe93c3d47455cd83dd24
parent8beb58cb276a286afda355003927995a7ff44dd1
Added a special-case so we always find an implementation of Python

If we can't find a distribution package for Python, add the version of
Python currently interpreting 0install as a candidate.

This is a temporary hack so that programs can state their dependency on Python
explicitly without breaking on platforms where we don't support the native
package manager.

Many feeds currently assume that Python must be installed, since 0install itself
depends on it, and use a #! line to run it. However, this doesn't work on
Windows or on Linux systems where "python" is now Python 3.
tests/testdistro.py
zeroinstall/injector/distro.py