Closed Bug 1628650 Opened 5 years ago Closed 4 years ago

Prefer Python 3 on MozillaBuild

Categories

(Firefox Build System :: MozillaBuild, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1697833

People

(Reporter: saschanaz, Unassigned)

References

Details

Now that mach supports Python 3, it's probably worth to prefer Python 3 on $PATH.

Ricky, can you foresee any problems from doing this?

See Also: → buildpython3

By "prefer Python 3 on $PATH", I assume you mean that when you type python at the shell, you'll get a python3 shell rather than a python2.7 one.

There will almost definitely be people whose workflows are broken by this, whether those workflows are based on code in-tree or not. This is not that concerning to me, although that is a factor.

Are there other OS distributions today where the python binary at the head of the $PATH is a python3 (where python2.7 is also an option)? I'm used to having to type python3 to run Python 3. If nothing else, staying consistent with other Unixy shells across the universe is something I'd like to do, if only because MozillaBuild is already so inconsistent with other Unixy shells.

Ubuntu 20.04 has only Python 3 by default while there is no python alias, unless the user installs python-is-python3.

Fedora 32's python is Python 3 by default. (I do not know if this can be overridden.)

This is being done as part of fixing some other Python-related issues in MozillaBuild.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.