Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/jupyterlab/
Date: Tue, 07 Sep 2021 19:09:46
Message-Id: 1631041771.6fa9b784963ad6227f124cf2601113902e06c341.andrewammerlaan@gentoo
1 commit: 6fa9b784963ad6227f124cf2601113902e06c341
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 19:09:31 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 19:09:31 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6fa9b784
7
8 dev-python/jupyterlab: depend on jupyter_packaging
9
10 to take care of the js stuff, makes life nice and easy
11
12 Package-Manager: Portage-3.0.22, Repoman-3.0.3
13 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
14
15 ...lab-3.1.10.ebuild => jupyterlab-3.1.10-r1.ebuild} | 20 +++++---------------
16 1 file changed, 5 insertions(+), 15 deletions(-)
17
18 diff --git a/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild b/dev-python/jupyterlab/jupyterlab-3.1.10-r1.ebuild
19 similarity index 62%
20 rename from dev-python/jupyterlab/jupyterlab-3.1.10.ebuild
21 rename to dev-python/jupyterlab/jupyterlab-3.1.10-r1.ebuild
22 index 7d3603c67..3fb54861a 100644
23 --- a/dev-python/jupyterlab/jupyterlab-3.1.10.ebuild
24 +++ b/dev-python/jupyterlab/jupyterlab-3.1.10-r1.ebuild
25 @@ -18,6 +18,8 @@ KEYWORDS="~amd64"
26 # TODO: package openapi et al
27 RESTRICT="test"
28
29 +BDEPEND="dev-python/jupyter_packaging[${PYTHON_USEDEP}]"
30 +
31 RDEPEND="
32 dev-python/ipython[${PYTHON_USEDEP}]
33 dev-python/packaging[${PYTHON_USEDEP}]
34 @@ -33,19 +35,7 @@ distutils_enable_tests pytest
35 # TODO: package myst_parser
36 #distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
37
38 -pkg_postinst() {
39 - # We have to do this here because we need internet since this uses yarn
40 - jupyter-lab build -y || ( \
41 - ewarn "Failed to build jupyterlab javascript assets, please run"
42 - ewarn "'jupyter-lab build' manually before starting jupyter-lab."
43 - ewarn "Note that this will likely require network access."
44 - )
45 -}
46 -
47 -pkg_prerm() {
48 - jupyter-lab clean -y --static || ( \
49 - ewarn "Failed to clean jupyterlab javascript assets, please remove"
50 - ewarn "/usr/share/jupyter/lab/staging and /usr/share/jupyter/lab/static"
51 - ewarn "manually."
52 - )
53 +python_install_all() {
54 + distutils-r1_python_install_all
55 + mv "${ED}/usr/etc" "${ED}/etc" || die
56 }