1 |
commit: f7e055139d73a096f937e4ff5b1736661405c3f4 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 7 18:43:50 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 7 18:43:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=f7e05513 |
7 |
|
8 |
dev-python/jupyterlab: ewarn instead of die |
9 |
|
10 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
dev-python/jupyterlab/jupyterlab-3.1.10.ebuild | 12 ++++++++++-- |
14 |
1 file changed, 10 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild b/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild |
17 |
index 6940fff45..7d3603c67 100644 |
18 |
--- a/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild |
19 |
+++ b/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild |
20 |
@@ -35,9 +35,17 @@ distutils_enable_tests pytest |
21 |
|
22 |
pkg_postinst() { |
23 |
# We have to do this here because we need internet since this uses yarn |
24 |
- jupyter-lab build -y || die "Failed to build jupyterlab javascript assets" |
25 |
+ jupyter-lab build -y || ( \ |
26 |
+ ewarn "Failed to build jupyterlab javascript assets, please run" |
27 |
+ ewarn "'jupyter-lab build' manually before starting jupyter-lab." |
28 |
+ ewarn "Note that this will likely require network access." |
29 |
+ ) |
30 |
} |
31 |
|
32 |
pkg_prerm() { |
33 |
- jupyter-lab clean -y || die "Failed to clean jupyterlab javascript assets" |
34 |
+ jupyter-lab clean -y --static || ( \ |
35 |
+ ewarn "Failed to clean jupyterlab javascript assets, please remove" |
36 |
+ ewarn "/usr/share/jupyter/lab/staging and /usr/share/jupyter/lab/static" |
37 |
+ ewarn "manually." |
38 |
+ ) |
39 |
} |