Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make invoke clean-all task delete worker/include/FBS #1397

Merged
merged 2 commits into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 6 additions & 21 deletions worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,37 +170,24 @@ def clean(ctx): # pylint: disable=unused-argument
"""
Clean the installation directory
"""
try:
shutil.rmtree(MEDIASOUP_INSTALL_DIR);
except:
pass;
shutil.rmtree(MEDIASOUP_INSTALL_DIR, ignore_errors=True);


@task
def clean_build(ctx): # pylint: disable=unused-argument
"""
Clean the build directory
"""
try:
shutil.rmtree(BUILD_DIR);
except:
pass;
shutil.rmtree(BUILD_DIR, ignore_errors=True);


@task
def clean_pip(ctx): # pylint: disable=unused-argument
"""
Clean the local pip setup
"""
try:
shutil.rmtree(PIP_MESON_NINJA_DIR);
except:
pass;

try:
shutil.rmtree(PIP_PYLINT_DIR);
except:
pass;
shutil.rmtree(PIP_MESON_NINJA_DIR, ignore_errors=True);
shutil.rmtree(PIP_PYLINT_DIR, ignore_errors=True);


@task(pre=[meson_ninja])
Expand Down Expand Up @@ -233,10 +220,8 @@ def clean_all(ctx):
except:
pass;

try:
shutil.rmtree(MEDIASOUP_OUT_DIR);
except:
pass;
shutil.rmtree(MEDIASOUP_OUT_DIR, ignore_errors=True);
shutil.rmtree('include/FBS', ignore_errors=True);


@task(pre=[meson_ninja])
Expand Down
Loading