Skip to content

Commit 96f4b92

Browse files
author
Zerline
committed
Install is now simple.
1 parent 323268b commit 96f4b92

File tree

5 files changed

+8
-19
lines changed

5 files changed

+8
-19
lines changed

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@ RUN apt-get update && apt-get -qq install -y curl \
66
&& apt-get install -yq nodejs && npm install npm@latest -g
77
USER sage
88
ENV HOME /home/sage
9+
RUN sage -pip install --upgrade ipywidgets jupyterlab
910
COPY --chown=sage:sage . ${HOME}/sage-combinat-widgets
1011
WORKDIR ${HOME}/sage-combinat-widgets
11-
RUN sage -pip install --upgrade ipywidgets
12-
RUN sage -pip install jupyterlab
13-
RUN cd ./js \
14-
&& npm install \
15-
&& sage -jupyter labextension install . \
16-
&& cd ..
1712
RUN sage -pip install .
1813
RUN sage -jupyter labextension install --no-build @jupyter-widgets/jupyterlab-manager \
1914
&& sage -jupyter lab build \

README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Also :
1919
Installation
2020
------------
2121

22+
$ pip3 install sage_combinat_widgets
23+
24+
2225
Local install from source
2326
^^^^^^^^^^^^^^^^^^^^^^^^^
2427

@@ -30,11 +33,7 @@ Change to the root directory and run::
3033

3134
$ sage -pip install --upgrade --no-index -v .
3235

33-
For convenience this package contains a [makefile](makefile) with this
34-
and other often used commands. Should you wish too, you can use the
35-
shorthand::
36-
37-
$ make install
36+
NB: For this to work, you need a recent `nodejs` installation.
3837

3938
Usage
4039
-----

js/package-lock.json

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"build:labextension": "npm run clean:labextension && mkdirp ../sage_combinat_widgets/labextension && cd ../sage_combinat_widgets/labextension && npm pack ../../js",
2828
"build:lib": "tsc",
2929
"build:nbextension": "webpack -p",
30-
"build:all": "npm run build:labextension && npm run build:nbextension",
30+
"build:all": "npm install && npm run build && npm run build:labextension",
3131
"clean": "rimraf dist/",
3232
"clean:lib": "rimraf lib",
3333
"clean:labextension": "rimraf ../sage_combinat_widgets/labextension",

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bdist_wheel]
2-
universal=1
2+
universal=0
33

44
[metadata]
55
description-file = README.rst

0 commit comments

Comments
 (0)