voxpupuli / puppet-python

Puppet module for installing and managing Python, pip, virtualenvs and Gunicorn virtual hosts.
https://forge.puppetlabs.com/puppet/python
Apache License 2.0
199 stars 370 forks source link

Installing specific version of python #544

Open nibbles83 opened 4 years ago

nibbles83 commented 4 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

Simply set the version to a specific yum package in the form name-epoch:ver-rel.arch (3-0:3.7.4-1.amzn2.0.4.x86_64)

What are you seeing

If i check my configured repository if have the following python3 versions available.

repoquery --show-duplicates python3 python3-0:3.7.4-1.amzn2.0.3.i686 python3-0:3.7.4-1.amzn2.0.3.x86_64 python3-0:3.7.4-1.amzn2.0.4.i686 python3-0:3.7.4-1.amzn2.0.4.x86_64 python3-0:3.7.6-1.amzn2.0.1.i686 python3-0:3.7.6-1.amzn2.0.1.x86_64

Locally running "yum install python3-0:3.7.4-1.amzn2.0.4.x86_64" installs the version i specify.

However when using the version parameter of this puppet module it only supports the first number of the version string.

So if configure a version parameter of 3-0:3.7.4-1.amzn2.0.4.x86_64 It simply reads the "3" at the start and ignores everything else. Therefore the actual package installed by yum is just python3

What behaviour did you expect instead

Ability to support package versions other than default repo latest versions.