Closed Bug 1831648 Opened 3 years ago Closed 1 year ago

Mozbuild requires packaging module but is not listed as dependency

Categories

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

defect

Tracking

(firefox-esr102 unaffected, firefox-esr115 wontfix, firefox-esr128 wontfix, firefox-esr140 wontfix, firefox113 wontfix, firefox114 wontfix, firefox115 wontfix, firefox142 wontfix, firefox143 wontfix, firefox144 fixed)

RESOLVED FIXED
144 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- wontfix
firefox-esr128 --- wontfix
firefox-esr140 --- wontfix
firefox113 --- wontfix
firefox114 --- wontfix
firefox115 --- wontfix
firefox142 --- wontfix
firefox143 --- wontfix
firefox144 --- fixed

People

(Reporter: hneiva, Assigned: ahochheiden)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

Mozbuild started using "packaging" module [1]
But the dependency was not listed in setup.cfg [2]

[1] https://phabricator.services.mozilla.com/D161756
[2] https://searchfox.org/mozilla-central/source/python/mozbuild/setup.py#17

While not a problem in gecko, as it installs the module from other dependencies, it's a problem for other repos (ie scriptworker-scripts) when we vendor it.

:ahochheiden, since you are the author of the regressor, bug 1798827, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(ahochheiden)
Severity: -- → S3
Flags: needinfo?(ahochheiden)
Priority: -- → P3
Assignee: nobody → ahochheiden
Status: NEW → ASSIGNED

Looks like https://github.com/r1chardj0n3s/pip-check-reqs could be used to avoid such regression in the future.

Set release status flags based on info from the regressing bug 1798827

After speaking with :glandium, we decided to go in a different direction on this, and remove the setup.py altogether for all of mach, mozbuild, and mozboot directories. It may have made sense at some point to allow them to be standalone packages, but we feel that is no longer the case. Updating them would signal we still care about supporting that, so we'll do the opposite and remove them to indicate we no longer feel they should be depended on in this way.

Attachment #9331932 - Attachment is obsolete: true

Hey Alex, can this be resolved?

Flags: needinfo?(ahochheiden)

This still needs to be done. I'll get around to it eventually.

Flags: needinfo?(ahochheiden)

These may have made sense as standalone packages, but that's no longer the case.

Dependencies are specified via the various python/sites/* files and site used
depends on which command is being run.

Pushed by ahochheiden@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/87ef2ec70bc3 https://hg.mozilla.org/integration/autoland/rev/21ee28c26244 Remove `setup.{py,cfg} ` files from `mach`, `mozbuild`, and `mozboot` r=firefox-build-system-reviewers,nalexander
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: