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
b537908b
Commit
b537908b
authored
May 16, 2018
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify Makefiles. Support parallel compilation.
parent
21e9a4c7
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
100 additions
and
138 deletions
+100
-138
Makefile
Makefile
+7
-11
Makefile.envs
Makefile.envs
+16
-0
cpython/Makefile
cpython/Makefile
+1
-3
dateutil/Makefile
dateutil/Makefile
+0
-6
numpy/Makefile
numpy/Makefile
+12
-28
pandas/Makefile
pandas/Makefile
+64
-78
pytz/Makefile
pytz/Makefile
+0
-6
six/Makefile
six/Makefile
+0
-6
No files found.
Makefile
View file @
b537908b
...
@@ -3,17 +3,13 @@ include Makefile.envs
...
@@ -3,17 +3,13 @@ include Makefile.envs
FILEPACKAGER
=
emsdk/emsdk/emscripten/incoming/tools/file_packager.py
FILEPACKAGER
=
emsdk/emsdk/emscripten/incoming/tools/file_packager.py
PYVERSION
=
3.6.4
PYMINOR
=
$(
basename
$(PYVERSION)
)
CPYTHONROOT
=
cpython
CPYTHONROOT
=
cpython
CPYTHONLIB
=
$(CPYTHONROOT)
/installs/python-
$(PYVERSION)
/lib/python
$(PYMINOR)
CPYTHONLIB
=
$(CPYTHONROOT)
/installs/python-
$(PYVERSION)
/lib/python
$(PYMINOR)
CPYTHONINC
=
$(CPYTHONROOT)
/installs/python-
$(PYVERSION)
/include/python
$(PYMINOR)
HOSTPYTHON
=
$(CPYTHONROOT)
/build/
$(PYVERSION)
/host/bin/python3
CC
=
emcc
CC
=
emcc
CXX
=
em++
CXX
=
em++
OPTFLAGS
=
-O3
OPTFLAGS
=
-O3
CFLAGS
=
$(OPTFLAGS)
-g
-I
$(
CPYTHONINC
)
-Wno-warn-absolute-paths
CFLAGS
=
$(OPTFLAGS)
-g
-I
$(
PYTHONINCLUDE
)
-Wno-warn-absolute-paths
CXXFLAGS
=
$(CFLAGS)
-std
=
c++14
CXXFLAGS
=
$(CFLAGS)
-std
=
c++14
LDFLAGS
=
\
LDFLAGS
=
\
-O3
\
-O3
\
...
@@ -53,7 +49,7 @@ SIX_LIBS=$(SIX_ROOT)/six.py
...
@@ -53,7 +49,7 @@ SIX_LIBS=$(SIX_ROOT)/six.py
SITEPACKAGES
=
root/lib/python
$(PYMINOR)
/site-packages
SITEPACKAGES
=
root/lib/python
$(PYMINOR)
/site-packages
all
:
build/pyodide.asm.
html
\
all
:
build/pyodide.asm.
js
\
build/pyodide.js
\
build/pyodide.js
\
build/pyodide_dev.js
\
build/pyodide_dev.js
\
build/python.html
\
build/python.html
\
...
@@ -64,12 +60,12 @@ all: build/pyodide.asm.html \
...
@@ -64,12 +60,12 @@ all: build/pyodide.asm.html \
build/pandas.data
build/pandas.data
build/pyodide.asm.
html
:
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
\
src/pyimport.bc src/pyproxy.bc src/python2js.bc
\
src/pyimport.bc src/pyproxy.bc src/python2js.bc
\
src/runpython.bc src/dummy_thread.bc root/.built
src/runpython.bc src/dummy_thread.bc root/.built
[
-d
build
]
||
mkdir
build
[
-d
build
]
||
mkdir
build
$(CC)
-s
EXPORT_NAME
=
"'pyodide'"
--bind
-o
$@
$(
filter
%.bc,
$^
)
$(LDFLAGS
)
\
$(CC)
-s
EXPORT_NAME
=
"'pyodide'"
--bind
-o
build/pyodide.asm.html
$(
filter
%.bc,
$^
)
\
$(
foreach
d,
$(
wildcard
root/
*
)
,--preload-file
$d
@/
$(
notdir
$d
))
$(LDFLAGS)
$(
foreach
d,
$(
wildcard
root/
*
)
,--preload-file
$d
@/
$(
notdir
$d
))
rm
build/pyodide.asm.asm.js
rm
build/pyodide.asm.asm.js
rm
build/pyodide.asm.wasm.pre
rm
build/pyodide.asm.wasm.pre
rm
build/pyodide.asm.html
rm
build/pyodide.asm.html
...
...
Makefile.envs
View file @
b537908b
...
@@ -5,3 +5,19 @@ export EM_CONFIG = $(PYODIDE_ROOT)/emsdk/emsdk/.emscripten
...
@@ -5,3 +5,19 @@ export EM_CONFIG = $(PYODIDE_ROOT)/emsdk/emsdk/.emscripten
export
EM_CACHE
=
$(PYODIDE_ROOT)
/emsdk/emsdk/.emscripten_cache
export
EM_CACHE
=
$(PYODIDE_ROOT)
/emsdk/emsdk/.emscripten_cache
export
EMSCRIPTEN
=
$(PYODIDE_ROOT)
/emsdk/emsdk/emscripten/incoming
export
EMSCRIPTEN
=
$(PYODIDE_ROOT)
/emsdk/emsdk/emscripten/incoming
export
BINARYEN_ROOT
=
$(PYODIDE_ROOT)
/emsdk/emsdk/binaryen/master_64bit_binaryen
export
BINARYEN_ROOT
=
$(PYODIDE_ROOT)
/emsdk/emsdk/binaryen/master_64bit_binaryen
export
PYVERSION
=
3.6.4
export
PYMINOR
=
$(
basename
$(PYVERSION)
)
export
HOSTPYTHONINSTALL
=
$(PYODIDE_ROOT)
/cpython/build/
$(PYVERSION)
/host
export
HOSTPYTHON
=
$(HOSTPYTHONINSTALL)
/bin/python3
export
PYTHONINCLUDE
=
$(PYODIDE_ROOT)
/cpython/installs/python-
$(PYVERSION)
/include/python
$(PYMINOR)
export
PLATFORMSLUG
=
$(
shell
$(HOSTPYTHON)
-c
"import sysconfig; print(sysconfig.get_platform(
))
"
)
-
$(PYMINOR)
export
SIDE_LDFLAGS
=
\
-O3
\
-Werror
\
-s
EMULATED_FUNCTION_POINTERS
=
1
\
-s
EMULATE_FUNCTION_POINTER_CASTS
=
1
\
-s
SIDE_MODULE
=
1
\
-s
WASM
=
1
\
--memory-init-file
0
cpython/Makefile
View file @
b537908b
PYODIDE_ROOT
=
$(
abspath
..
)
PYODIDE_ROOT
=
$(
abspath
..
)
include
../Makefile.envs
include
../Makefile.envs
PYVERSION
=
3.6.4
PYMINOR
=
$(
basename
$(PYVERSION)
)
ROOT
=
$(
abspath
.
)
ROOT
=
$(
abspath
.
)
HOSTINSTALL
=
$(ROOT)
/build/
$(PYVERSION)
/host
HOSTINSTALL
=
$(ROOT)
/build/
$(PYVERSION)
/host
...
@@ -37,6 +34,7 @@ clean:
...
@@ -37,6 +34,7 @@ clean:
-
rm
-fr
$(BUILD)
-
rm
-fr
$(BUILD)
-
rm
-fr
$(INSTALL)
-
rm
-fr
$(INSTALL)
$(TARBALL)
:
$(TARBALL)
:
[
-d
$(ROOT)
/downloads
]
||
mkdir
$(ROOT)
/downloads
[
-d
$(ROOT)
/downloads
]
||
mkdir
$(ROOT)
/downloads
wget
-q
-O
$@
$(URL)
wget
-q
-O
$@
$(URL)
...
...
dateutil/Makefile
View file @
b537908b
PYODIDE_ROOT
=
$(
abspath
..
)
PYODIDE_ROOT
=
$(
abspath
..
)
include
../Makefile.envs
include
../Makefile.envs
PYVERSION
=
3.6.4
PYMINOR
=
$(
basename
$(PYVERSION)
)
DATEUTILVERSION
=
2.7.2
DATEUTILVERSION
=
2.7.2
ROOT
=
$(
abspath
.
)
ROOT
=
$(
abspath
.
)
HOSTPYTHONINSTALL
=
$(ROOT)
/../cpython/build/
$(PYVERSION)
/host
HOSTPYTHON
=
$(HOSTPYTHONINSTALL)
/bin/python3
$(EXE)
SRC
=
$(ROOT)
/python-dateutil-
$(DATEUTILVERSION)
SRC
=
$(ROOT)
/python-dateutil-
$(DATEUTILVERSION)
BUILD
=
$(SRC)
/build/lib/dateutil
BUILD
=
$(SRC)
/build/lib/dateutil
TARBALL
=
$(ROOT)
/downloads/python-dateutil-
$(DATEUTILVERSION)
.tgz
TARBALL
=
$(ROOT)
/downloads/python-dateutil-
$(DATEUTILVERSION)
.tgz
...
...
numpy/Makefile
View file @
b537908b
PYODIDE_ROOT
=
$(
abspath
..
)
PYODIDE_ROOT
=
$(
abspath
..
)
include
../Makefile.envs
include
../Makefile.envs
PYVERSION
=
3.6.4
PYMINOR
=
$(
basename
$(PYVERSION)
)
NPYVERSION
=
1.14.1
NPYVERSION
=
1.14.1
ROOT
=
$(
abspath
.
)
ROOT
=
$(
abspath
.
)
HOSTPYTHONINSTALL
=
$(ROOT)
/../cpython/build/
$(PYVERSION)
/host
HOSTPYTHON
=
$(HOSTPYTHONINSTALL)
/bin/python3
$(EXE)
PYTHONINCLUDE
=
$(ROOT)
/../cpython/installs/python-
$(PYVERSION)
/include/python
$(PYMINOR)
HOSTROOT
=
$(ROOT)
/host
HOSTROOT
=
$(ROOT)
/host
HOSTDIR
=
$(HOSTROOT)
/numpy-
$(NPYVERSION)
HOSTDIR
=
$(HOSTROOT)
/numpy-
$(NPYVERSION)
HOSTBUILD
=
$(HOSTDIR)
/build
HOSTBUILD
=
$(HOSTDIR)
/build
...
@@ -25,8 +18,6 @@ BUILDRANDOM=$(BUILD)/numpy/random
...
@@ -25,8 +18,6 @@ BUILDRANDOM=$(BUILD)/numpy/random
ZIPFILE
=
$(ROOT)
/downloads/numpy-
$(NPYVERSION)
.zip
ZIPFILE
=
$(ROOT)
/downloads/numpy-
$(NPYVERSION)
.zip
URL
=
https://pypi.python.org/packages/a3/99/74aa456fc740a7e8f733af4e8302d8e61e123367ec660cd89c53a3cd4d70/numpy-1.14.1.zip
URL
=
https://pypi.python.org/packages/a3/99/74aa456fc740a7e8f733af4e8302d8e61e123367ec660cd89c53a3cd4d70/numpy-1.14.1.zip
PLATFORMSLUG
=
$(
shell
$(HOSTPYTHON)
-c
"import sysconfig; print(sysconfig.get_platform(
))
"
)
-
$(PYMINOR)
INCLUDE
=
$(HOSTDIR)
/numpy/core/include
INCLUDE
=
$(HOSTDIR)
/numpy/core/include
SRC
=
$(HOSTDIR)
/numpy/core/src
SRC
=
$(HOSTDIR)
/numpy/core/src
GENINCLUDE
=
$(HOSTBUILD)
/src.
$(PLATFORMSLUG)
/numpy/core/include
GENINCLUDE
=
$(HOSTBUILD)
/src.
$(PLATFORMSLUG)
/numpy/core/include
...
@@ -39,18 +30,8 @@ RANDOM_SRC=$(HOSTDIR)/numpy/random
...
@@ -39,18 +30,8 @@ RANDOM_SRC=$(HOSTDIR)/numpy/random
CC
=
emcc
CC
=
emcc
AR
=
emar
AR
=
emar
CFLAGS
=
-O3
-Werror
-std
=
c99
-DNPY_INTERNAL_BUILD
=
1
-DHAVE_NPY_CONFIG_H
=
1
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE_SOURCE
=
1
-D_LARGEFILE64_SOURCE
=
1
-I
$(ROOT)
/config
-I
$(INCLUDE)
-I
$(GENINCLUDE)
/numpy
-I
$(INCLUDE)
/private
-I
$(SRC)
-I
$(SRC)
/..
-I
$(SRC)
/private
-I
$(SRC)
/npymath
-I
$(SRC)
/multiarray
-I
$(SRC)
/umath
-I
$(SRC)
/npysort
-I
$(PYTHONINCLUDE)
-I
$(GENSRC)
/private
-I
$(GENSRC)
/npymath
-I
$(GENSRC)
/umath
CFLAGS
=
-O3
-Werror
-std
=
c99
-DNPY_INTERNAL_BUILD
=
1
-DHAVE_NPY_CONFIG_H
=
1
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE_SOURCE
=
1
-D_LARGEFILE64_SOURCE
=
1
-I
$(ROOT)
/config
-I
$(INCLUDE)
-I
$(GENINCLUDE)
/numpy
-I
$(INCLUDE)
/private
-I
$(SRC)
-I
$(SRC)
/..
-I
$(SRC)
/private
-I
$(SRC)
/npymath
-I
$(SRC)
/multiarray
-I
$(SRC)
/umath
-I
$(SRC)
/npysort
-I
$(PYTHONINCLUDE)
-I
$(GENSRC)
/private
-I
$(GENSRC)
/npymath
-I
$(GENSRC)
/umath
LDFLAGS
=
\
-O3
\
OBJECTS
=
\
-Werror
\
-s
EMULATED_FUNCTION_POINTERS
=
1
\
-s
EMULATE_FUNCTION_POINTER_CASTS
=
1
\
-s
SIDE_MODULE
=
1
\
-s
WASM
=
1
\
--memory-init-file
0
all
:
\
$(BUILD)/numpy/__init__.py
\
$(BUILDCORE)
/multiarray.so
\
$(BUILDCORE)
/multiarray.so
\
$(BUILDCORE)
/umath.so
\
$(BUILDCORE)
/umath.so
\
$(BUILDLINALG)
/lapack_lite.so
\
$(BUILDLINALG)
/lapack_lite.so
\
...
@@ -58,6 +39,9 @@ all: \
...
@@ -58,6 +39,9 @@ all: \
$(BUILDRANDOM)
/mtrand.so
\
$(BUILDRANDOM)
/mtrand.so
\
$(BUILDFFT)
/fftpack_lite.so
$(BUILDFFT)
/fftpack_lite.so
all
:
make
$(BUILD)
/numpy/__init__.py
make
$(OBJECTS)
clean
:
clean
:
rm
-fr
$(HOSTROOT)
rm
-fr
$(HOSTROOT)
...
@@ -210,34 +194,34 @@ MTRAND_SRC=\
...
@@ -210,34 +194,34 @@ MTRAND_SRC=\
$(BUILDCORE)/multiarray.so
:
$(MULTIARRAY_SRC) $(NPYMATH_SRC) $(NPYSORT_SRC)
$(BUILDCORE)/multiarray.so
:
$(MULTIARRAY_SRC) $(NPYMATH_SRC) $(NPYSORT_SRC)
$(CC)
$(LDFLAGS)
$^
-o
$(BUILDCORE)
/multiarray.wasm
$(CC)
$(
SIDE_
LDFLAGS)
$^
-o
$(BUILDCORE)
/multiarray.wasm
mv
$(BUILDCORE)
/multiarray.wasm
$(BUILDCORE)
/multiarray.so
mv
$(BUILDCORE)
/multiarray.wasm
$(BUILDCORE)
/multiarray.so
$(BUILDCORE)/umath.so
:
$(UMATH_SRC) $(NPYMATH_SRC)
$(BUILDCORE)/umath.so
:
$(UMATH_SRC) $(NPYMATH_SRC)
$(CC)
$(LDFLAGS)
$^
-o
$(BUILDCORE)
/umath.wasm
$(CC)
$(
SIDE_
LDFLAGS)
$^
-o
$(BUILDCORE)
/umath.wasm
mv
$(BUILDCORE)
/umath.wasm
$(BUILDCORE)
/umath.so
mv
$(BUILDCORE)
/umath.wasm
$(BUILDCORE)
/umath.so
$(BUILDLINALG)/lapack_lite.so
:
$(LAPACK_LITE_SRC) $(LAPACK_BLAS_SRC) $(NPYMATH_SRC)
$(BUILDLINALG)/lapack_lite.so
:
$(LAPACK_LITE_SRC) $(LAPACK_BLAS_SRC) $(NPYMATH_SRC)
$(CC)
$(LDFLAGS)
$^
-o
$(BUILDLINALG)
/lapack_lite.wasm
$(CC)
$(
SIDE_
LDFLAGS)
$^
-o
$(BUILDLINALG)
/lapack_lite.wasm
mv
$(BUILDLINALG)
/lapack_lite.wasm
$(BUILDLINALG)
/lapack_lite.so
mv
$(BUILDLINALG)
/lapack_lite.wasm
$(BUILDLINALG)
/lapack_lite.so
$(BUILDLINALG)/_umath_linalg.so
:
$(UMATH_LINALG_SRC) $(LAPACK_BLAS_SRC) $(NPYMATH_SRC)
$(BUILDLINALG)/_umath_linalg.so
:
$(UMATH_LINALG_SRC) $(LAPACK_BLAS_SRC) $(NPYMATH_SRC)
$(CC)
$(LDFLAGS)
$^
-o
$(BUILDLINALG)
/_umath_linalg.wasm
$(CC)
$(
SIDE_
LDFLAGS)
$^
-o
$(BUILDLINALG)
/_umath_linalg.wasm
mv
$(BUILDLINALG)
/_umath_linalg.wasm
$(BUILDLINALG)
/_umath_linalg.so
mv
$(BUILDLINALG)
/_umath_linalg.wasm
$(BUILDLINALG)
/_umath_linalg.so
$(BUILDFFT)/fftpack_lite.so
:
$(FFTPACK_LITE_SRC)
$(BUILDFFT)/fftpack_lite.so
:
$(FFTPACK_LITE_SRC)
$(CC)
$(LDFLAGS)
$^
-o
$(BUILDFFT)
/fftpack_lite.wasm
$(CC)
$(
SIDE_
LDFLAGS)
$^
-o
$(BUILDFFT)
/fftpack_lite.wasm
mv
$(BUILDFFT)
/fftpack_lite.wasm
$(BUILDFFT)
/fftpack_lite.so
mv
$(BUILDFFT)
/fftpack_lite.wasm
$(BUILDFFT)
/fftpack_lite.so
$(BUILDRANDOM)/mtrand.so
:
$(MTRAND_SRC)
$(BUILDRANDOM)/mtrand.so
:
$(MTRAND_SRC)
$(CC)
$(LDFLAGS)
$^
-o
$(BUILDRANDOM)
/mtrand.wasm
$(CC)
$(
SIDE_
LDFLAGS)
$^
-o
$(BUILDRANDOM)
/mtrand.wasm
mv
$(BUILDRANDOM)
/mtrand.wasm
$(BUILDRANDOM)
/mtrand.so
mv
$(BUILDRANDOM)
/mtrand.wasm
$(BUILDRANDOM)
/mtrand.so
%.bc
:
%.c
$(BUILD)/numpy/__init__.py
%.bc
:
%.c
$(CC)
$(CFLAGS)
-include
math.h
-c
$<
-o
$@
$(CC)
$(CFLAGS)
-include
math.h
-c
$<
-o
$@
pandas/Makefile
View file @
b537908b
PYODIDE_ROOT
=
$(
abspath
..
)
PYODIDE_ROOT
=
$(
abspath
..
)
include
../Makefile.envs
include
../Makefile.envs
PYVERSION
=
3.6.4
PYMINOR
=
$(
basename
$(PYVERSION)
)
PDVERSION
=
0.22.0
PDVERSION
=
0.22.0
NPYVERSION
=
1.14.1
NPYVERSION
=
1.14.1
ROOT
=
$(
abspath
.
)
ROOT
=
$(
abspath
.
)
HOSTPYTHONINSTALL
=
$(ROOT)
/../cpython/build/
$(PYVERSION)
/host
HOSTPYTHON
=
$(HOSTPYTHONINSTALL)
/bin/python3
$(EXE)
PYTHONINCLUDE
=
$(ROOT)
/../cpython/installs/python-
$(PYVERSION)
/include/python
$(PYMINOR)
HOSTROOT
=
$(ROOT)
/host
HOSTROOT
=
$(ROOT)
/host
HOSTDIR
=
$(HOSTROOT)
/pandas-
$(PDVERSION)
HOSTDIR
=
$(HOSTROOT)
/pandas-
$(PDVERSION)
HOSTBUILD
=
$(HOSTDIR)
/build
HOSTBUILD
=
$(HOSTDIR)
/build
...
@@ -22,24 +15,12 @@ BUILD=$(ROOT)/build/pandas
...
@@ -22,24 +15,12 @@ BUILD=$(ROOT)/build/pandas
TARBALL
=
$(ROOT)
/downloads/pandas-
$(PDVERSION)
.tar.gz
TARBALL
=
$(ROOT)
/downloads/pandas-
$(PDVERSION)
.tar.gz
URL
=
https://pypi.python.org/packages/08/01/803834bc8a4e708aedebb133095a88a4dad9f45bbaf5ad777d2bea543c7e/pandas-0.22.0.tar.gz
URL
=
https://pypi.python.org/packages/08/01/803834bc8a4e708aedebb133095a88a4dad9f45bbaf5ad777d2bea543c7e/pandas-0.22.0.tar.gz
PLATFORMSLUG
=
$(
shell
$(HOSTPYTHON)
-c
"import sysconfig; print(sysconfig.get_platform(
))
"
)
-
$(PYMINOR)
CC
=
emcc
CC
=
emcc
CXX
=
em++
CXX
=
em++
AR
=
emar
AR
=
emar
CFLAGS
=
-Wsign-compare
-DNDEBUG
-g
-fwrapv
-O3
-Wall
-Wstrict-prototypes
-fPIC
-I
$(HOSTDIR)
/pandas/_libs/src/klib
-I
$(HOSTDIR)
/pandas/_libs/src
-I
../numpy/host/numpy-
$(NPYVERSION)
/numpy/core/include
-I
../numpy/config
-I
../numpy/host/numpy-
$(NPYVERSION)
/build/src.
$(PLATFORMSLUG)
/numpy/core/include/numpy
-I
$(PYTHONINCLUDE)
-I
$(HOSTDIR)
/pandas/_libs/src/ujson/lib
-I
$(HOSTDIR)
/pandas/_libs/src/datetime
-Wno-unused-function
CFLAGS
=
-Wsign-compare
-DNDEBUG
-g
-fwrapv
-O3
-Wall
-Wstrict-prototypes
-fPIC
-I
$(HOSTDIR)
/pandas/_libs/src/klib
-I
$(HOSTDIR)
/pandas/_libs/src
-I
../numpy/host/numpy-
$(NPYVERSION)
/numpy/core/include
-I
../numpy/config
-I
../numpy/host/numpy-
$(NPYVERSION)
/build/src.
$(PLATFORMSLUG)
/numpy/core/include/numpy
-I
$(PYTHONINCLUDE)
-I
$(HOSTDIR)
/pandas/_libs/src/ujson/lib
-I
$(HOSTDIR)
/pandas/_libs/src/datetime
-Wno-unused-function
LDFLAGS
=
\
-O3
\
OBJECTS
=
\
-Werror
\
-s
EMULATED_FUNCTION_POINTERS
=
1
\
-s
EMULATE_FUNCTION_POINTER_CASTS
=
1
\
-s
SIDE_MODULE
=
1
\
-s
WASM
=
1
\
--memory-init-file
0
all
:
\
$(BUILD)/__init__.py
\
$(BUILD)
/_libs/algos.so
\
$(BUILD)
/_libs/algos.so
\
$(BUILD)
/_libs/groupby.so
\
$(BUILD)
/_libs/groupby.so
\
$(BUILD)
/_libs/hashtable.so
\
$(BUILD)
/_libs/hashtable.so
\
...
@@ -66,7 +47,12 @@ all: \
...
@@ -66,7 +47,12 @@ all: \
$(BUILD)
/io/msgpack/_unpacker.so
\
$(BUILD)
/io/msgpack/_unpacker.so
\
$(BUILD)
/_libs/testing.so
\
$(BUILD)
/_libs/testing.so
\
$(BUILD)
/io/sas/_sas.so
\
$(BUILD)
/io/sas/_sas.so
\
$(BUILD)/util/_move.so
$(BUILD)
/util/_move.so
\
all
:
make
$(BUILD)
/__init__.py
make
$(OBJECTS)
clean
:
clean
:
...
@@ -105,54 +91,54 @@ $(ROOT)/.patched: $(HOSTDIR)/setup.py
...
@@ -105,54 +91,54 @@ $(ROOT)/.patched: $(HOSTDIR)/setup.py
$(BUILD)/_libs/lib.so
:
$(HOSTDIR)/pandas/_libs/lib.bc
$(BUILD)/_libs/lib.so
:
$(HOSTDIR)/pandas/_libs/lib.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/properties.so
:
$(HOSTDIR)/pandas/_libs/properties.bc
$(BUILD)/_libs/properties.so
:
$(HOSTDIR)/pandas/_libs/properties.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/hashtable.so
:
$(HOSTDIR)/pandas/_libs/hashtable.bc
$(BUILD)/_libs/hashtable.so
:
$(HOSTDIR)/pandas/_libs/hashtable.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/tslibs/strptime.so
:
\
$(BUILD)/_libs/tslibs/strptime.so
:
\
$(HOSTDIR)/pandas/_libs/tslibs/strptime.bc
\
$(HOSTDIR)/pandas/_libs/tslibs/strptime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/tslib.so
:
\
$(BUILD)/_libs/tslib.so
:
\
$(HOSTDIR)/pandas/_libs/tslib.bc
\
$(HOSTDIR)/pandas/_libs/tslib.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/tslibs/timedeltas.so
:
\
$(BUILD)/_libs/tslibs/timedeltas.so
:
\
$(HOSTDIR)/pandas/_libs/tslibs/timedeltas.bc
$(HOSTDIR)/pandas/_libs/tslibs/timedeltas.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/tslibs/timezones.so
:
\
$(BUILD)/_libs/tslibs/timezones.so
:
\
$(HOSTDIR)/pandas/_libs/tslibs/timezones.bc
$(HOSTDIR)/pandas/_libs/tslibs/timezones.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/tslibs/fields.so
:
\
$(BUILD)/_libs/tslibs/fields.so
:
\
$(HOSTDIR)/pandas/_libs/tslibs/fields.bc
\
$(HOSTDIR)/pandas/_libs/tslibs/fields.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/period.so
:
\
$(BUILD)/_libs/period.so
:
\
...
@@ -160,20 +146,20 @@ $(BUILD)/_libs/period.so: \
...
@@ -160,20 +146,20 @@ $(BUILD)/_libs/period.so: \
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
\
$(HOSTDIR)/pandas/_libs/src/period_helper.bc
$(HOSTDIR)/pandas/_libs/src/period_helper.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/tslibs/parsing.so
:
\
$(BUILD)/_libs/tslibs/parsing.so
:
\
$(HOSTDIR)/pandas/_libs/tslibs/parsing.bc
$(HOSTDIR)/pandas/_libs/tslibs/parsing.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/tslibs/frequencies.so
:
\
$(BUILD)/_libs/tslibs/frequencies.so
:
\
$(HOSTDIR)/pandas/_libs/tslibs/frequencies.bc
$(HOSTDIR)/pandas/_libs/tslibs/frequencies.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/index.so
:
\
$(BUILD)/_libs/index.so
:
\
...
@@ -181,88 +167,88 @@ $(BUILD)/_libs/index.so: \
...
@@ -181,88 +167,88 @@ $(BUILD)/_libs/index.so: \
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
\
$(HOSTDIR)/pandas/_libs/src/period_helper.bc
$(HOSTDIR)/pandas/_libs/src/period_helper.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/algos.so
:
\
$(BUILD)/_libs/algos.so
:
\
$(HOSTDIR)/pandas/_libs/algos.bc
$(HOSTDIR)/pandas/_libs/algos.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/groupby.so
:
\
$(BUILD)/_libs/groupby.so
:
\
$(HOSTDIR)/pandas/_libs/groupby.bc
$(HOSTDIR)/pandas/_libs/groupby.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/join.so
:
\
$(BUILD)/_libs/join.so
:
\
$(HOSTDIR)/pandas/_libs/join.bc
$(HOSTDIR)/pandas/_libs/join.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/reshape.so
:
\
$(BUILD)/_libs/reshape.so
:
\
$(HOSTDIR)/pandas/_libs/reshape.bc
$(HOSTDIR)/pandas/_libs/reshape.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/interval.so
:
\
$(BUILD)/_libs/interval.so
:
\
$(HOSTDIR)/pandas/_libs/interval.bc
$(HOSTDIR)/pandas/_libs/interval.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/window.so
:
\
$(BUILD)/_libs/window.so
:
\
$(HOSTDIR)/pandas/_libs/window.bc
$(HOSTDIR)/pandas/_libs/window.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/parsers.so
:
\
$(BUILD)/_libs/parsers.so
:
\
$(HOSTDIR)/pandas/_libs/parsers.bc
\
$(HOSTDIR)/pandas/_libs/parsers.bc
\
$(HOSTDIR)/pandas/_libs/src/parser/tokenizer.bc
\
$(HOSTDIR)/pandas/_libs/src/parser/tokenizer.bc
\
$(HOSTDIR)/pandas/_libs/src/parser/io.bc
$(HOSTDIR)/pandas/_libs/src/parser/io.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/sparse.so
:
\
$(BUILD)/_libs/sparse.so
:
\
$(HOSTDIR)/pandas/_libs/sparse.bc
$(HOSTDIR)/pandas/_libs/sparse.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/hashing.so
:
\
$(BUILD)/_libs/hashing.so
:
\
$(HOSTDIR)/pandas/_libs/hashing.bc
$(HOSTDIR)/pandas/_libs/hashing.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/io/sas/_sas.so
:
\
$(BUILD)/io/sas/_sas.so
:
\
$(HOSTDIR)/pandas/io/sas/sas.bc
$(HOSTDIR)/pandas/io/sas/sas.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/testing.so
:
\
$(BUILD)/_libs/testing.so
:
\
$(HOSTDIR)/pandas/_libs/testing.bc
$(HOSTDIR)/pandas/_libs/testing.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/io/msgpack/_packer.so
:
\
$(BUILD)/io/msgpack/_packer.so
:
\
$(HOSTDIR)/pandas/io/msgpack/_packer.bc
$(HOSTDIR)/pandas/io/msgpack/_packer.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/io/msgpack/_unpacker.so
:
\
$(BUILD)/io/msgpack/_unpacker.so
:
\
$(HOSTDIR)/pandas/io/msgpack/_unpacker.bc
$(HOSTDIR)/pandas/io/msgpack/_unpacker.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/_libs/json.so
:
\
$(BUILD)/_libs/json.so
:
\
...
@@ -273,19 +259,19 @@ $(BUILD)/_libs/json.so: \
...
@@ -273,19 +259,19 @@ $(BUILD)/_libs/json.so: \
$(HOSTDIR)/pandas/_libs/src/ujson/lib/ultrajsondec.bc
\
$(HOSTDIR)/pandas/_libs/src/ujson/lib/ultrajsondec.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime.bc
\
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
$(HOSTDIR)/pandas/_libs/src/datetime/np_datetime_strings.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
$(BUILD)/util/_move.so
:
\
$(BUILD)/util/_move.so
:
\
$(HOSTDIR)/pandas/util/move.bc
$(HOSTDIR)/pandas/util/move.bc
$(CC)
$(
LDFLAGS)
$^
-o
tmp
.wasm
$(CC)
$(
SIDE_LDFLAGS)
$^
-o
$@
.wasm
mv
tmp
.wasm
$@
mv
$@
.wasm
$@
%.bc
:
%.c
$(BUILD)/__init__.py
%.bc
:
%.c
$(CC)
$(CFLAGS)
-include
src/state.h
-c
$<
-o
$@
$(CC)
$(CFLAGS)
-include
src/state.h
-c
$<
-o
$@
%.bc
:
%.cpp
$(BUILD)/__init__.py
%.bc
:
%.cpp
$(CXX)
$(CFLAGS)
-include
src/state.h
-c
$<
-o
$@
$(CXX)
$(CFLAGS)
-include
src/state.h
-c
$<
-o
$@
pytz/Makefile
View file @
b537908b
PYODIDE_ROOT
=
$(
abspath
..
)
PYODIDE_ROOT
=
$(
abspath
..
)
include
../Makefile.envs
include
../Makefile.envs
PYVERSION
=
3.6.4
PYMINOR
=
$(
basename
$(PYVERSION)
)
PYTZVERSION
=
2018.4
PYTZVERSION
=
2018.4
ROOT
=
$(
abspath
.
)
ROOT
=
$(
abspath
.
)
HOSTPYTHONINSTALL
=
$(ROOT)
/../cpython/build/
$(PYVERSION)
/host
HOSTPYTHON
=
$(HOSTPYTHONINSTALL)
/bin/python3
$(EXE)
SRC
=
$(ROOT)
/pytz-
$(PYTZVERSION)
SRC
=
$(ROOT)
/pytz-
$(PYTZVERSION)
BUILD
=
$(SRC)
/build/lib/pytz
BUILD
=
$(SRC)
/build/lib/pytz
TARBALL
=
$(ROOT)
/downloads/pytz-
$(PYTZVERSION)
.tgz
TARBALL
=
$(ROOT)
/downloads/pytz-
$(PYTZVERSION)
.tgz
...
...
six/Makefile
View file @
b537908b
PYODIDE_ROOT
=
$(
abspath
..
)
PYODIDE_ROOT
=
$(
abspath
..
)
include
../Makefile.envs
include
../Makefile.envs
PYVERSION
=
3.6.4
PYMINOR
=
$(
basename
$(PYVERSION)
)
SIXVERSION
=
1.11.0
SIXVERSION
=
1.11.0
ROOT
=
$(
abspath
.
)
ROOT
=
$(
abspath
.
)
HOSTPYTHONINSTALL
=
$(ROOT)
/../cpython/build/
$(PYVERSION)
/host
HOSTPYTHON
=
$(HOSTPYTHONINSTALL)
/bin/python3
$(EXE)
SRC
=
$(ROOT)
/six-
$(SIXVERSION)
SRC
=
$(ROOT)
/six-
$(SIXVERSION)
BUILD
=
$(SRC)
/build/lib/six
BUILD
=
$(SRC)
/build/lib/six
TARBALL
=
$(ROOT)
/downloads/six-
$(SIXVERSION)
.tgz
TARBALL
=
$(ROOT)
/downloads/six-
$(SIXVERSION)
.tgz
...
...
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