Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
9e1af2f6
Commit
9e1af2f6
authored
Jun 15, 2018
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move pyparsing and cycler to their own packages
parent
6fec713b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
Makefile
Makefile
+18
-12
packager.sh
packager.sh
+2
-0
src/pyodide.js
src/pyodide.js
+3
-1
No files found.
Makefile
View file @
9e1af2f6
...
@@ -84,7 +84,9 @@ all: build/pyodide.asm.js \
...
@@ -84,7 +84,9 @@ all: build/pyodide.asm.js \
build/pytz.data
\
build/pytz.data
\
build/pandas.data
\
build/pandas.data
\
build/matplotlib.data
\
build/matplotlib.data
\
build/kiwisolver.data
build/kiwisolver.data
\
build/pyparsing.data
\
build/cycler.data
build/pyodide.asm.js
:
src/main.bc src/jsimport.bc src/jsproxy.bc src/js2python.bc
\
build/pyodide.asm.js
:
src/main.bc src/jsimport.bc src/jsproxy.bc src/js2python.bc
\
...
@@ -162,38 +164,44 @@ clean:
...
@@ -162,38 +164,44 @@ clean:
# TODO: It would be nice to generalize this
# TODO: It would be nice to generalize this
build/numpy.data
:
$(NUMPY_LIBS)
build/numpy.data
:
$(NUMPY_LIBS)
python2
$(FILEPACKAGER)
build/numpy.data
--preload
$(NUMPY_ROOT)
@/lib/python3.6/site-packages/numpy
--js-output
=
build/numpy.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
./packager.sh numpy
$(NUMPY_ROOT)
@/lib/python3.6/site-packages/numpy
build/dateutil.data
:
$(DATEUTIL_LIBS)
build/dateutil.data
:
$(DATEUTIL_LIBS)
python2
$(FILEPACKAGER)
build/dateutil.data
--preload
$(DATEUTIL_ROOT)
@/lib/python3.6/site-packages/dateutil
--js-output
=
build/dateutil.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
./packager.sh dateutil
$(DATEUTIL_ROOT)
@/lib/python3.6/site-packages/dateutil
build/pytz.data
:
$(PYTZ_LIBS)
build/pytz.data
:
$(PYTZ_LIBS)
python2
$(FILEPACKAGER)
build/pytz.data
--preload
$(PYTZ_ROOT)
@/lib/python3.6/site-packages/pytz
--js-output
=
build/pytz.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
./packager.sh pytz
$(PYTZ_ROOT)
@/lib/python3.6/site-packages/pytz
build/pandas.data
:
$(PANDAS_LIBS)
build/pandas.data
:
$(PANDAS_LIBS)
python2
$(FILEPACKAGER)
build/pandas.data
--preload
$(PANDAS_ROOT)
@/lib/python3.6/site-packages/pandas
--js-output
=
build/pandas.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
./packager.sh pandas
$(PANDAS_ROOT)
@/lib/python3.6/site-packages/pandas
build/matplotlib.data
:
$(MATPLOTLIB_LIBS)
build/matplotlib.data
:
$(MATPLOTLIB_LIBS)
python2
$(FILEPACKAGER)
build/matplotlib.data
--preload
$(MATPLOTLIB_ROOT)
@/lib/python3.6/site-packages/matplotlib
--js-output
=
build/matplotlib.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
./packager.sh matplotlib
$(MATPLOTLIB_ROOT)
@/lib/python3.6/site-packages/matplotlib
build/kiwisolver.data
:
$(KIWISOLVER_LIBS)
build/kiwisolver.data
:
$(KIWISOLVER_LIBS)
python2
$(FILEPACKAGER)
build/kiwisolver.data
--preload
kiwisolver/build@/lib/python3.6/site-packages
--js-output
=
build/kiwisolver.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
./packager.sh kiwisolver kiwisolver/build@/lib/python3.6/site-packages
build/cycler.data
:
$(CYCLER_LIBS)
./packager.sh cycler
$(CYCLER_ROOT)
@/lib/python3.6/site-packages
build/pyparsing.data
:
$(CYCLER_LIBS)
./packager.sh pyparsing
$(PYPARSING_ROOT)
@/lib/python3.6/site-packages
build/test.data
:
$(CPYTHONLIB)
build/test.data
:
$(CPYTHONLIB)
python2
$(FILEPACKAGER)
build/test.data
--preload
$(CPYTHONLIB)
/test@/lib/python3.6/test
--js-output
=
build/test.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
./packager.sh
test
$(CPYTHONLIB)
/test@/lib/python3.6/test
root/.built
:
\
root/.built
:
\
$(CPYTHONLIB)
\
$(CPYTHONLIB)
\
$(SIX_LIBS)
\
$(SIX_LIBS)
\
$(PYPARSING_LIBS)
\
$(CYCLER_LIBS)
\
src/sitecustomize.py
\
src/sitecustomize.py
\
src/webbrowser.py
\
src/webbrowser.py
\
src/pyodide.py
\
src/pyodide.py
\
...
@@ -202,8 +210,6 @@ root/.built: \
...
@@ -202,8 +210,6 @@ root/.built: \
mkdir
-p
root/lib
mkdir
-p
root/lib
cp
-a
$(CPYTHONLIB)
/ root/lib
cp
-a
$(CPYTHONLIB)
/ root/lib
cp
$(SIX_LIBS)
$(SITEPACKAGES)
cp
$(SIX_LIBS)
$(SITEPACKAGES)
cp
$(PYPARSING_LIBS)
$(SITEPACKAGES)
cp
$(CYCLER_LIBS)
$(SITEPACKAGES)
cp
src/sitecustomize.py
$(SITEPACKAGES)
cp
src/sitecustomize.py
$(SITEPACKAGES)
cp
src/webbrowser.py root/lib/python
$(PYMINOR)
cp
src/webbrowser.py root/lib/python
$(PYMINOR)
cp
src/_testcapi.py root/lib/python
$(PYMINOR)
cp
src/_testcapi.py root/lib/python
$(PYMINOR)
...
...
packager.sh
0 → 100755
View file @
9e1af2f6
#!/bin/sh
python2 emsdk/emsdk/emscripten/tag-1.38.4/tools/file_packager.py build/
$1
.data
--preload
$2
--js-output
=
build/
$1
.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
src/pyodide.js
View file @
9e1af2f6
...
@@ -11,11 +11,13 @@ var languagePluginLoader = new Promise((resolve, reject) => {
...
@@ -11,11 +11,13 @@ var languagePluginLoader = new Promise((resolve, reject) => {
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
// Package loading
// Package loading
const
packages
=
{
const
packages
=
{
'
cycler
'
:
[],
'
dateutil
'
:
[],
'
dateutil
'
:
[],
'
kiwisolver
'
:
[],
'
kiwisolver
'
:
[],
'
matplotlib
'
:
[
'
numpy
'
,
'
dateutil
'
,
'
pytz
'
,
'
kiwisolver
'
],
'
matplotlib
'
:
[
'
numpy
'
,
'
dateutil
'
,
'
pytz
'
,
'
kiwisolver
'
,
'
cycler
'
,
'
pyparsing
'
],
'
numpy
'
:
[],
'
numpy
'
:
[],
'
pandas
'
:
[
'
numpy
'
,
'
dateutil
'
,
'
pytz
'
],
'
pandas
'
:
[
'
numpy
'
,
'
dateutil
'
,
'
pytz
'
],
'
pyparsing
'
:
[],
'
pytz
'
:
[],
'
pytz
'
:
[],
'
test
'
:
[]
'
test
'
:
[]
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment