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
d3b63101
Commit
d3b63101
authored
Oct 29, 2018
by
Roman Yurchak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better way to pass SKIP_HOST as an environement variable
parent
d9b590f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
pyodide_build/buildpkg.py
pyodide_build/buildpkg.py
+2
-1
pyodide_build/pywasmcross.py
pyodide_build/pywasmcross.py
+1
-1
No files found.
pyodide_build/buildpkg.py
View file @
d3b63101
...
@@ -83,7 +83,8 @@ def compile(path, srcpath, pkg, args):
...
@@ -83,7 +83,8 @@ def compile(path, srcpath, pkg, args):
orig_dir
=
Path
.
cwd
()
orig_dir
=
Path
.
cwd
()
os
.
chdir
(
srcpath
)
os
.
chdir
(
srcpath
)
env
=
dict
(
os
.
environ
)
env
=
dict
(
os
.
environ
)
env
[
'SKIP_HOST'
]
=
str
(
pkg
.
get
(
'build'
,
{}).
get
(
'skip_host'
,
True
))
if
pkg
.
get
(
'build'
,
{}).
get
(
'skip_host'
,
True
):
env
[
'SKIP_HOST'
]
=
''
try
:
try
:
subprocess
.
run
([
subprocess
.
run
([
...
...
pyodide_build/pywasmcross.py
View file @
d3b63101
...
@@ -59,7 +59,7 @@ def collect_args(basename):
...
@@ -59,7 +59,7 @@ def collect_args(basename):
path
=
path
.
replace
(
str
(
ROOTDIR
)
+
':'
,
''
)
path
=
path
.
replace
(
str
(
ROOTDIR
)
+
':'
,
''
)
env
[
'PATH'
]
=
path
env
[
'PATH'
]
=
path
skip_host
=
os
.
environ
.
get
(
'SKIP_HOST'
,
'True'
).
lower
()
==
'true'
skip_host
=
'SKIP_HOST'
in
os
.
environ
# Skip compilations of C/Fortran extensions for the target environement.
# Skip compilations of C/Fortran extensions for the target environement.
# We still need to generate the output files for distutils to continue
# We still need to generate the output files for distutils to continue
...
...
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