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 375 forks source link

Fix pip installation on Gentoo #651

Closed jameslikeslinux closed 1 year ago

jameslikeslinux commented 1 year ago

Pull Request (PR) description

The 'pip' package name is ambiguous on Gentoo, with options 'app-misc/pip' and 'dev-python/pip', resulting in the following error during installation:

Error: /Stage[main]/Python::Install/Package[pip]: Could not evaluate: More than one package with the specified name [pip], please use the category parameter to disambiguate

The error message directs us to use the category parameter, which this module already did; however, category is a "read-only parameter set by the package" [1].

The correct way to disambiguate this package is to use the full package name, 'dev-python/pip'.

[1] https://www.puppet.com/docs/puppet/7/types/package.html#package-attribute-category

This Pull Request (PR) fixes the following issues

n/a