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
b66d6984
Commit
b66d6984
authored
Aug 23, 2018
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install to a directory, and use that, instead of just the build/lib...
parent
56ef3a09
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
packages/numpy/meta.yaml
packages/numpy/meta.yaml
+1
-0
tools/buildpkg.py
tools/buildpkg.py
+3
-3
tools/pywasmcross
tools/pywasmcross
+11
-0
No files found.
packages/numpy/meta.yaml
View file @
b66d6984
...
...
@@ -18,6 +18,7 @@ source:
-
patches/pass-along-errors-from-init.patch
-
patches/use-dummy-threading.patch
-
patches/use-local-blas-lapack.patch
-
patches/fix-install-with-skip-build.patch
build
:
cflags
:
-include math.h -I../../config
...
...
tools/buildpkg.py
View file @
b66d6984
...
...
@@ -135,17 +135,17 @@ def compile(path, srcpath, pkg, args):
def
package_files
(
buildpath
,
srcpath
,
pkg
,
args
):
if
(
buildpath
/
'.pac
a
kaged'
).
is_file
():
if
(
buildpath
/
'.packaged'
).
is_file
():
return
name
=
pkg
[
'package'
][
'name'
]
libdir
=
get_libdir
(
srcpath
,
args
)
install_prefix
=
(
srcpath
/
'install'
).
resolve
(
)
subprocess
.
run
([
'python'
,
Path
(
os
.
environ
[
'EMSCRIPTEN'
])
/
'tools'
/
'file_packager.py'
,
name
+
'.data'
,
'--preload'
,
'{}@/
lib/python3.6/site-packages'
.
format
(
libdir
),
'{}@/
'
.
format
(
install_prefix
),
'--js-output={}'
.
format
(
name
+
'.js'
),
'--export-name=pyodide'
,
'--exclude'
,
'*.wasm.pre'
,
...
...
tools/pywasmcross
View file @
b66d6984
...
...
@@ -186,12 +186,23 @@ def clean_out_native_artifacts():
path
.
unlink
()
def
install_for_distribution
():
subprocess
.
check_call
(
[
Path
(
args
.
host
)
/
'bin'
/
'python3'
,
'setup.py'
,
'install'
,
'--skip-build'
,
'--prefix=install'
,
'--old-and-unmanageable'
])
def
build_wrap
(
args
):
build_log_path
=
Path
(
'build.log'
)
if
not
build_log_path
.
is_file
():
capture_compile
(
args
)
clean_out_native_artifacts
()
replay_compile
(
args
)
install_for_distribution
()
def
parse_args
():
...
...
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