mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 04:27:39 +00:00
(improvement) Support PIP_PATH and PYTHON_PATH env var for building and starting services (#146)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# pip path
|
# pip path
|
||||||
pip_path="/usr/local/bin/pip3"
|
pip_path=${PIP_PATH:-"/usr/local/bin/pip3"}
|
||||||
|
|
||||||
sbinDir=$(cd "$(dirname "$0")"; pwd)
|
sbinDir=$(cd "$(dirname "$0")"; pwd)
|
||||||
baseDir=$(cd "$sbinDir/.." && pwd -P)
|
baseDir=$(cd "$sbinDir/.." && pwd -P)
|
||||||
@@ -36,6 +36,7 @@ cp -fr webapp ../../launchers/chat/target/classes
|
|||||||
cp -fr webapp ../../launchers/standalone/target/classes
|
cp -fr webapp ../../launchers/standalone/target/classes
|
||||||
|
|
||||||
#5. build backend python modules
|
#5. build backend python modules
|
||||||
|
echo "start installing python modules with pip: ${pip_path}"
|
||||||
requirementPath=$baseDir/../chat/core/src/main/python/requirements.txt
|
requirementPath=$baseDir/../chat/core/src/main/python/requirements.txt
|
||||||
${pip_path} install -r ${requirementPath}
|
${pip_path} install -r ${requirementPath}
|
||||||
echo "install python modules success"
|
echo "install python modules success"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
python_path="/usr/local/bin/python3"
|
python_path=${PYTHON_PATH:-"/usr/local/bin/python3"}
|
||||||
readonly CHAT_APP_NAME="supersonic_chat"
|
readonly CHAT_APP_NAME="supersonic_chat"
|
||||||
readonly SEMANTIC_APP_NAME="supersonic_semantic"
|
readonly SEMANTIC_APP_NAME="supersonic_semantic"
|
||||||
readonly LLMPARSER_APP_NAME="supersonic_llmparser"
|
readonly LLMPARSER_APP_NAME="supersonic_llmparser"
|
||||||
|
|||||||
Reference in New Issue
Block a user