Closed
Bug 885233
Opened 11 years ago
Closed 10 years ago
Use python2 when available in activation script
Categories
(Add-on SDK Graveyard :: General, defect, P3)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: marek, Assigned: marek)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0 (Beta/Release)
Build ID: 20130514164240
Steps to reproduce:
Just ran bin/activate on and Arch Linux machine. The activation script will nicely say that you are using Python3 and it's not ready for that.
Actual results:
When I then ran bin/cfx it failed with an error because of the difference between python2 and python3
Expected results:
I believe that when running bin/activate it should detect that `which python2` actually exists and change every occurence of python to python2.
The Arch Linux AUR PKGBUILD solves this with a oneliner
grep -Rl python . | xargs sed -ri 's/([^!]|^)python(\s|$)/\1python2\2/g'
which I think should be also added to the activation script along with the detection code described above. Since it's also written in bash it should not be a big technical issue.
If you decide this issue is worth fixing I'd like to try to fix it.
Thanks
We'd like to have you try to fix it. :)
Assignee: nobody → marek
Priority: -- → P3
I have submitted the pull request here.
https://github.com/mozilla/addon-sdk/pull/1088
In there I tried (and to my understanding) also fixed it.
Please let me know if it's good enough.
Flags: needinfo?(rFobic)
Comment 3•11 years ago
|
||
Hey Brian, would you have some time to review this patch ? I don't think we do really have python people on a team to reason about this changes.
Flags: needinfo?(rFobic) → needinfo?(warner-bugzilla)
Comment 4•11 years ago
|
||
Cc-ing Mossop, since he should have a better idea who can review this.
Comment 5•11 years ago
|
||
Comments added to the pull request.. the idea is ok, but the patch is a bit overkill IMO, there's probably a gentler way to do it.
Flags: needinfo?(warner-bugzilla)
Updated•11 years ago
|
Flags: needinfo?(dtownsend+bugmail)
Comment 6•11 years ago
|
||
Sorry that this slipped by me, I'll get this reviewed.
Attachment #8334845 -
Flags: review?(dtownsend+bugmail)
Flags: needinfo?(dtownsend+bugmail)
Comment 7•11 years ago
|
||
Comment on attachment 8334845 [details] [review]
pull request
I don't have a problem with how it selects which python in activate but modifying bin/cfx as part of that isn't acceptable.
Attachment #8334845 -
Flags: review?(dtownsend+bugmail) → review-
Comment 8•10 years ago
|
||
I submitted a PR on github at https://github.com/mozilla/addon-sdk/pull/1602 for this issue, but perhaps it was ignored since I didn't bring it up here.
This works as long as all the platforms supported are new enough to have a python2 binary. Are there any systems in the last ~ three years that don't have it?
Comment 9•10 years ago
|
||
Adding a patch for this bug. I can rebase on master if needed, although I can't run testcfx on master as is. See https://github.com/mozilla/addon-sdk/pull/1602
Attachment #8530578 -
Flags: review?
Updated•10 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 10•10 years ago
|
||
Sorry we won't be releasing any new versions of cfx, jpm is the replacement https://www.npmjs.com/package/jpm
Resolution: FIXED → WONTFIX
Updated•10 years ago
|
Attachment #8530578 -
Flags: review?
You need to log in
before you can comment on or make changes to this bug.
Description
•