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
6ef80a8f
Commit
6ef80a8f
authored
Aug 17, 2018
by
Roman Yurchak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use python instead of python2
parent
4d2f4bf6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Makefile
Makefile
+2
-2
tools/buildpkg.py
tools/buildpkg.py
+1
-1
No files found.
Makefile
View file @
6ef80a8f
...
@@ -64,7 +64,7 @@ build/pyodide.asm.js: src/main.bc src/jsimport.bc src/jsproxy.bc src/js2python.b
...
@@ -64,7 +64,7 @@ build/pyodide.asm.js: src/main.bc src/jsimport.bc src/jsproxy.bc src/js2python.b
build/pyodide.asm.data
:
root/.built
build/pyodide.asm.data
:
root/.built
python
2
$(FILEPACKAGER)
build/pyodide.asm.data
--preload
root/lib@lib
--js-output
=
build/pyodide.asm.data.js
--use-preload-plugins
python
$(FILEPACKAGER)
build/pyodide.asm.data
--preload
root/lib@lib
--js-output
=
build/pyodide.asm.data.js
--use-preload-plugins
uglifyjs build/pyodide.asm.data.js
-o
build/pyodide.asm.data.js
uglifyjs build/pyodide.asm.data.js
-o
build/pyodide.asm.data.js
...
@@ -136,7 +136,7 @@ build/test.data: $(CPYTHONLIB)
...
@@ -136,7 +136,7 @@ build/test.data: $(CPYTHONLIB)
cd
$(CPYTHONLIB)
/test
;
\
cd
$(CPYTHONLIB)
/test
;
\
find
-type
d
-name
__pycache__
-prune
-exec
rm
-rf
{}
\;
\
find
-type
d
-name
__pycache__
-prune
-exec
rm
-rf
{}
\;
\
)
)
python
2
$(FILEPACKAGER)
build/test.data
--preload
$(CPYTHONLIB)
/test@/lib/python3.6/test
--js-output
=
build/test.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
python
$(FILEPACKAGER)
build/test.data
--preload
$(CPYTHONLIB)
/test@/lib/python3.6/test
--js-output
=
build/test.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
uglifyjs build/test.js
-o
build/test.js
uglifyjs build/test.js
-o
build/test.js
...
...
tools/buildpkg.py
View file @
6ef80a8f
...
@@ -141,7 +141,7 @@ def package_files(buildpath, srcpath, pkg, args):
...
@@ -141,7 +141,7 @@ def package_files(buildpath, srcpath, pkg, args):
name
=
pkg
[
'package'
][
'name'
]
name
=
pkg
[
'package'
][
'name'
]
libdir
=
get_libdir
(
srcpath
,
args
)
libdir
=
get_libdir
(
srcpath
,
args
)
subprocess
.
run
([
subprocess
.
run
([
'python
2
'
,
'python'
,
Path
(
os
.
environ
[
'EMSCRIPTEN'
])
/
'tools'
/
'file_packager.py'
,
Path
(
os
.
environ
[
'EMSCRIPTEN'
])
/
'tools'
/
'file_packager.py'
,
buildpath
/
(
name
+
'.data'
),
buildpath
/
(
name
+
'.data'
),
'--preload'
,
'--preload'
,
...
...
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