puppet-python
puppet-python copied to clipboard
pip uses the wrong package
when using the default provider and changing the version, pip is still installed as either python-pip or python3-pip. For example, in this invocation to install python from ius:
class { 'python':
ensure => 'present',
version => 'python27',
pip => 'present',
dev => 'present',
virtualenv => 'present',
use_epel => false,
}
you get this debug output:
Debug: Executing: '/bin/rpm -q python27 --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/bin/rpm -q python27 --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Notice: (/Stage[main]/Python::Install/Package[python]/ensure) current_value purged, should be present (noop)
Debug: (/Stage[main]/Python::Install/Package[python]) The container Class[Python::Install] will propagate my refresh event
Debug: Executing: '/bin/rpm -q python27-virtualenv --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/bin/rpm -q python27-virtualenv --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Notice: (/Stage[main]/Python::Install/Package[virtualenv]/ensure) current_value purged, should be present (noop)
Debug: (/Stage[main]/Python::Install/Package[virtualenv]) The container Class[Python::Install] will propagate my refresh event
Debug: Executing: '/bin/rpm -q python-pip --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/bin/rpm -q python-pip --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Notice: (/Stage[main]/Python::Install/Package[pip]/ensure) current_value purged, should be present (noop)
Debug: (/Stage[main]/Python::Install/Package[pip]) The container Class[Python::Install] will propagate my refresh event
Debug: Executing: '/bin/rpm -q python27-devel --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/bin/rpm -q python27-devel --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Notice: (/Stage[main]/Python::Install/Package[python-dev]/ensure) current_value purged, should be present (noop)
Debug: (/Stage[main]/Python::Install/Package[python-dev]) The container Class[Python::Install] will propagate my refresh event
Debug: Executing: '/bin/rpm -q python-gunicorn --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/bin/rpm -q python-gunicorn --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Debug: (/Stage[main]/Python::Install/Package[gunicorn]) Nothing to manage: no ensure and the resource doesn't exist
python, devel and virtualenv all have the right package, but pip's is wrong. gunicorn's is also wrong, but there's no python27-gunicorn in ius, so I'm, less worried about that.