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
64ab6761
Commit
64ab6761
authored
Sep 20, 2018
by
Roman Yurchak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pyodide_build/__main__.py
parent
72293058
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
pyodide_build/__main__.py
pyodide_build/__main__.py
+25
-0
No files found.
pyodide_build/__main__.py
0 → 100644
View file @
64ab6761
#!/usr/bin/env python3
import
argparse
from
.
import
buildall
from
.
import
buildpkg
from
.
import
pywasmcross
def
main
():
main_parser
=
argparse
.
ArgumentParser
()
subparsers
=
main_parser
.
add_subparsers
(
help
=
'action'
)
for
command_name
,
module
in
((
"buildpkg"
,
buildpkg
),
(
"buildall"
,
buildall
),
(
"pywasmcross"
,
pywasmcross
)):
parser
=
module
.
make_parser
(
subparsers
.
add_parser
(
command_name
))
parser
.
set_defaults
(
func
=
module
.
main
)
args
=
main_parser
.
parse_args
()
# run the selected action
args
.
func
(
args
)
if
__name__
==
'__main__'
:
main
()
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