Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python::pip downgrade to older versions fails #150

Closed
adc-jdiep opened this issue Nov 19, 2014 · 2 comments
Closed

python::pip downgrade to older versions fails #150

adc-jdiep opened this issue Nov 19, 2014 · 2 comments

Comments

@adc-jdiep
Copy link

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.

@adc-jdiep
Copy link
Author

Found that this issue is with older pip version- 1.3.1. When I upgraded to newer version, it will upgrade or downgrade the modules correctly.

@shivapoudel
Copy link
Contributor

:P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants