Merge pull request #921 from scop/micropython

micropython-dev: Set better sys.path
This commit is contained in:
Yamashita, Yuu 2017-07-06 10:41:06 +09:00 committed by GitHub
commit e93b170fe1

View file

@ -946,9 +946,10 @@ build_package_micropython() {
fi
{ cd unix
"$MAKE" $MAKE_OPTS axtls
"$MAKE" $MAKE_OPTS
"$MAKE" $MAKE_OPTS CFLAGS_EXTRA="-DMICROPY_PY_SYS_PATH_DEFAULT='\"${PREFIX_PATH}/lib/micropython\"'"
"$MAKE" install $MAKE_INSTALL_OPTS PREFIX="${PREFIX_PATH}"
( cd "${PREFIX_PATH}/bin" && ln -fs micropython python )
ln -fs micropython "${PREFIX_PATH}/bin/python"
mkdir -p "${PREFIX_PATH}/lib/micropython"
}>&4 2>&1
}