micropython-dev: Set better sys.path

This commit is contained in:
Ville Skyttä 2017-05-29 12:06:04 +03:00
parent 7467eec9de
commit 7add7793cd

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
}