opscode/cookbooks — pull request #297 by captnswing (2011-12-31 11:37:39+00:00)
Title: two patches for python source install recipe

1) source install was not idempotent

in case that node['python']['version'] = "2.7.2" (e.g. three digits), the install_path calculated was also containing three digits, e.g. /usr/local/lib/python2.7.2. But: the python lib path contains only the major version number, e.g /usr/local/lib/python2.7 for all versions of python 2.7.
This resultet in the source compilation beeing run with every provisioning.

2) make install overwrites pre-existing system python

not nice. changed to 'make altinstall" which leaves the pre-existing system python intact, and install the new pytohn with version suffix instead, e.g. /usr/local/bin/python2.7