Closed Bug 1686137 Opened 3 years ago Closed 3 years ago

install_mobile_android_sdk_or_ndk relies on wget

Categories

(Firefox Build System :: Bootstrap Configuration, task, P3)

task

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: glandium, Assigned: ahochheiden)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(4 files, 2 obsolete files)

We should avoid relying on wget, which is not available on macOS by default. We currently do install it via homebrew or macports, but it would be better if we didn't need that.

Assuming we run the code after the virtualenv is created, we should have the requests module available anyways, so there isn't really a reason to use an external program to download stuff.

Assignee: nobody → sheehan
Priority: -- → P3
Assignee: sheehan → nobody
Keywords: good-first-bug
Assignee: nobody → surajeet310

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.

Assignee: surajeet310 → nobody

This is a little bit non-trivial, since we probably want to keep wget's --continue behaviour.
As part of re-implementing this with requests, we should intelligently continue interrupted downloads.

Assignee: nobody → ahochheiden
Status: NEW → ASSIGNED

By using requests we remove an external dependency (wget) that may not always be
available. The '--continue' functionality from wget is implemented via pathlib.

By using requests we remove an external dependency (wget) that may not always be
available. The '--continue' functionality from wget is implemented via pathlib.

Attachment #9246908 - Attachment is obsolete: true
Attachment #9246909 - Attachment description: Bug 1686137 - Replace wget with requests in install_mobile_android_sdk_or_ndk to remove an external dependency r=mhentges → WIP: Bug 1686137 - Replace 'wget' with 'requests' in install_mobile_android_sdk_or_ndk to remove the external dependency on 'wget' g=firefox-build-system-reviewers
Attachment #9246909 - Attachment description: WIP: Bug 1686137 - Replace 'wget' with 'requests' in install_mobile_android_sdk_or_ndk to remove the external dependency on 'wget' g=firefox-build-system-reviewers → Bug 1686137 - Replace 'wget' with 'requests' in install_mobile_android_sdk_or_ndk to remove the external dependency on 'wget' r=mhentges g=firefox-build-system-reviewers

Colorama enables colored text on terminal windows.

'tqdm' depends on Colorama on Windows.

Project Link: https://pypi.org/project/colorama/

Attachment #9248769 - Attachment is obsolete: true
Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/493626d35826
Vendor 'tqdm' progress bar library r=mhentges
https://hg.mozilla.org/integration/autoland/rev/bfe4d253ce87
Vendor 'colorama' library r=mhentges, g?firefox-build-system-reviewers
https://hg.mozilla.org/integration/autoland/rev/3bf13dec098d
Replace 'wget' with 'requests' in install_mobile_android_sdk_or_ndk to remove the external dependency on 'wget' r=mhentges,firefox-build-system-reviewers g=firefox-build-system-reviewers
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: