Skip to content

python::pip downgrade to older versions fails #150

@adc-jdiep

Description

@adc-jdiep

Trying to downgrade a python module fails- it still installs whatever is in the /tmp/pip-build-root/${name}

[root@example ~]# pip list | grep bottle
bottle (0.12.7)

python::pip {'bottle':
pkgname => 'bottle',
ensure => '0.11.3',
}

/tmp/pip.log (snippet)
Downloading/unpacking bottle==0.11.3
...
Requested bottle==0.11.3, but installing version 0.12.7
...

[root@example ~]# pip list | grep bottle
bottle (0.12.7)

Edited modules/python/manifests/pip.ini file

Prepend
command => "/bin/rm -rf /tmp/pip-build-root/${name} || ....

Re-ran puppet

[root@example ~]# pip list | grep bottle
bottle (0.11.3)

Not sure if this is the best way to solve the problem, but it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions