`./mach clobber python` should remove virtualenvs
Categories
(Firefox Build System :: Mach Core, task)
Tracking
(firefox90 fixed)
Tracking | Status | |
---|---|---|
firefox90 | --- | fixed |
People
(Reporter: mhentges, Assigned: mhentges)
References
Details
Attachments
(4 files)
It's called ./mach clobber python
, but it only deletes pyc
files. Other python-related generated files (such as _virtualenvs
) aren't deleted.
![]() |
Assignee | |
Comment 1•4 years ago
|
||
We no longer build and install native Python modules in
third_party/python, so purging that doesn't make sense anymore.
After that, all that's being purged is py[cdo]
files and their parent
__pycache__
directories.
Also leans into argparse
's choices
argument, which should make
command migrations easier for consumers: "invalid choice: 'python'
(choose from 'gradle', 'pyc', 'objdir')".
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
![]() |
Assignee | |
Updated•4 years ago
|
![]() |
Assignee | |
Comment 2•4 years ago
|
||
The setup.py
action is no longer used, so we can safely remove it.
Depends on D115641
![]() |
Assignee | |
Comment 3•4 years ago
|
||
MACH_VIRTUALENV
was never used, and MOZBUILD_VIRTUALENV
was never
set (the virtualenv was always activated during the build, rather
than before).
Depends on D115913
![]() |
Assignee | |
Comment 4•4 years ago
|
||
Back-to-back ./mach clobber gradle
invocations were failing
because shutil.rmtree(..)
would complain that the target directory
didn't exist.
![]() |
||
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/922cb1e35a9e
https://hg.mozilla.org/mozilla-central/rev/05c9e4f016fd
https://hg.mozilla.org/mozilla-central/rev/c1bda584266e
https://hg.mozilla.org/mozilla-central/rev/9e0875e5c029
Description
•