-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
49 lines (38 loc) · 930 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PYODIDE_VERSION=2005c9d231454493b9c140d926ab81e6fa35d018
DASH_VERSION=2.1.0
WEDBASH_VERSION=0.0.2
install_pyodide:
git clone [email protected]:pyodide/pyodide.git; \
cd pyodide; \
git checkout $(PYODIDE_VERSION);
pyodide: install_pyodide
cd pyodide; \
git apply ../patches/webdash.patch;
install_dash:
git clone [email protected]:plotly/dash.git; \
cd dash; \
git checkout tags/v$(DASH_VERSION) -b $(DASH_VERSION)
copy_build:
mkdir -p dist; \
cd dist; \
cp -r ../pyodide/build/*.* .;
delete_dist:
rm -rf dist;
webdash_patch:
cd pyodide; \
git diff --cached > ../patches/webdash.patch
make_dist:
mkdir dist;
clean: delete_dist make_dist
rm -rf .cache
webdash_build:
npm run build;
fetch_prebuilt:
cd dist; \
git clone https://github.com/ibdafna/webdash_dist; \
cd webdash_dist; \
git checkout webdash_0.0.2; \
cd ..;\
mv ./webdash_dist/*.* .; \
rm -rf webdash_dist;
setup: webdash_build fetch_prebuilt