Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPin virtualenv pip package to pin installed binary #228
Conversation
A recent update of the virtualenv package changed the installed binaries from `virtualenv` and `virtualenv-3.4`, to `virtualenv` and `virtualenv-3.5`, breaking the homu installation which needs a python3 version of virtualenv. Pin the package to the newest version and update the homu installation to use the virtualenv-3.5 binary. Note: the python3 apt package still installs python3.4, but the version difference should be ok since virtualenv is just used to install homu, not run it.
|
Pop some dummy values into the config (stick a valid github login and repo URL in it), and ensure
in |
|
This is what's currently on the server, btw:
|
|
OK, tested it locally and homu ran successfully. (It only needed an access token with the user:email scope.) |
|
@bors-servo r+ Oh, yeah, that thing shouldn't actually be necessary (we don't use that setting); I should make it optional. |
|
|
Pin virtualenv pip package to pin installed binary I noticed homu broke (sometime today I guess) while working on another PR. A recent update of the virtualenv package changed the installed binaries from `virtualenv` and `virtualenv-3.4`, to `virtualenv` and `virtualenv-3.5`, breaking the homu installation which needs a python3 version of virtualenv. Pin the package to the newest version and update the homu installation to use the virtualenv-3.5 binary. Note: the python3 apt package still installs python3.4, but the version difference should be ok since virtualenv is just used to install homu, not run it. @Manishearth as I said in the commit message I don't think combining python3.4 and virtualenv-3.5 should cause problems, but how can I test homu manually to make sure it runs properly? <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/228) <!-- Reviewable:end -->
|
I checked the homu source, and it looks like it wants access to the user:email data in order to have an email to use when making commits via git. For example, bors-servo commits with the email 'lbergstrom+bors@mozilla.com'. I guess this could be configured as a separate config option, but I do think it's useful to have an email associated with homu. |
|
Oh ah. I was thinking about a different optional key which seems to now actually be optional. |
|
|
|
Deployed, works. There's a virtualenv-3.4 still hanging around, but it's not breaking anything as far as I can tell. |
|
That's weird, I'm going to look into it. I don't want it causing any problems in the future (like #203). |
|
That's probably because the salt-redeploy doesn't uninstall things? |
|
Well, the virtualenv pip package was already installed, so it should just update it to a newer version via pip. I'm guessing this is a pip behavior, but it could be due to Salt or the virtualenv package itself. |
aneeshusa commentedFeb 29, 2016
I noticed homu broke (sometime today I guess) while working on another PR.
A recent update of the virtualenv package changed the installed
binaries from
virtualenvandvirtualenv-3.4, tovirtualenvandvirtualenv-3.5, breaking the homu installation which needs a python3version of virtualenv. Pin the package to the newest version and update
the homu installation to use the virtualenv-3.5 binary.
Note: the python3 apt package still installs python3.4, but the version
difference should be ok since virtualenv is just used to install homu,
not run it.
@Manishearth as I said in the commit message I don't think combining
python3.4 and virtualenv-3.5 should cause problems, but how can I test
homu manually to make sure it runs properly?