Skip to content

Commit 137f6b7

Browse files
committed
lsb
1 parent bd7e12a commit 137f6b7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

python-wasi-sdk.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ then
2828
. /etc/lsb-release
2929
export PLATFORM=linux
3030
else
31+
# is it Debian
3132
if [ -f /etc/os-release ]
3233
then
3334
. /etc/os-release
@@ -36,10 +37,10 @@ else
3637
else
3738
# or not
3839
export DISTRIB_ID=$($SYS_PYTHON -E -c "print(__import__('sysconfig').get_config_var('HOST_GNU_TYPE'))")
40+
export PLATFORM=$($SYS_PYTHON -E -c "print(__import__('sys').platform)")
41+
echo no /etc/lsb-release found, please identify platform $PLATFORM : \"${DISTRIB_ID}-${DISTRIB_RELEASE}\" or hit enter to continue
42+
read
3943
fi
40-
export PLATFORM=$($SYS_PYTHON -E -c "print(__import__('sys').platform)")
41-
echo no /etc/lsb-release found, please identify platform $PLATFORM : \"${DISTRIB_ID}-${DISTRIB_RELEASE}\" or hit enter to continue
42-
read
4344
fi
4445

4546
export DISTRIB="${DISTRIB_ID}-${DISTRIB_RELEASE}"

python-wasm-sdk.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ then
2828
. /etc/lsb-release
2929
export PLATFORM=linux
3030
else
31+
# is it Debian
3132
if [ -f /etc/os-release ]
3233
then
3334
. /etc/os-release
@@ -36,10 +37,10 @@ else
3637
else
3738
# or not
3839
export DISTRIB_ID=$($SYS_PYTHON -E -c "print(__import__('sysconfig').get_config_var('HOST_GNU_TYPE'))")
40+
export PLATFORM=$($SYS_PYTHON -E -c "print(__import__('sys').platform)")
41+
echo no /etc/lsb-release found, please identify platform $PLATFORM : \"${DISTRIB_ID}-${DISTRIB_RELEASE}\" or hit enter to continue
42+
read
3943
fi
40-
export PLATFORM=$($SYS_PYTHON -E -c "print(__import__('sys').platform)")
41-
echo no /etc/lsb-release found, please identify platform $PLATFORM : \"${DISTRIB_ID}-${DISTRIB_RELEASE}\" or hit enter to continue
42-
read
4344
fi
4445

4546
export DISTRIB="${DISTRIB_ID}-${DISTRIB_RELEASE}"

0 commit comments

Comments
 (0)