FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
EmCPython/build-python.sh at master · PeachPy/EmCPython · GitHub
PeachPy
EmCPython
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
EmCPython
/
build-python.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
34 lines (27 loc) · 878 Bytes
Breadcrumbs
EmCPython
/
build-python.sh
Copy path
File metadata and controls
executable file
·
34 lines (27 loc) · 878 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!
/usr/bin/env bash
set
-ue
EMSCRIPTEN_USR_DIR=
$PWD
/emscripten
PYTHON_DIR=
$PWD
/Python-2.7
BUILD_TRIPPLE=
$(
${PYTHON_DIR}
/config.guess
)
OSNAME=
$(
uname -s
)
if
[
"
${OSNAME}
"
==
"
Linux
"
]
then
PYTHON_BINARY=python
else
PYTHON_BINARY=python.exe
fi
pushd
"
${PYTHON_DIR}
"
if
[
!
-f
"
${PYTHON_BINARY}
"
]
then
./configure
make
${PYTHON_BINARY}
Parser/pgen
mv
${PYTHON_BINARY}
hostpython
mv Parser/pgen Parser/hostpgen
make distclean
fi
CONFIG_SITE=./config.site emconfigure ./configure --without-threads --without-pymalloc --disable-shared --disable-ipv6 --without-gcc --host=asmjs-unknown-emscripten --build=
${BUILD_TRIPPLE}
--prefix=
${EMSCRIPTEN_USR_DIR}
cp ../Setup.local Modules/
emmake make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen CROSS_COMPILE=yes
emmake make install HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen CROSS_COMPILE=yes
make distclean
popd
Back
|
FazBrowse Home
|
New Git URL