-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP Signed-off-by: Kosaku Kimura <kimura.kosaku@fujitsu.com> * Issue fix in setup.sh for SapientML * Updation of config file as Sapientml supports Python version 3.9 Signed-off-by: HimanshuRRai <himanshu.rai@fujitsu.com> --------- Signed-off-by: Kosaku Kimura <kimura.kosaku@fujitsu.com> Signed-off-by: HimanshuRRai <himanshu.rai@fujitsu.com> Co-authored-by: muhammed-nafi-k-a <muhammednafi.a@fujitsu.com> Co-authored-by: HimanshuRRai <himanshu.rai@fujitsu.com>
- Loading branch information
1 parent
49f4a22
commit 5b55360
Showing
4 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
sapientml | ||
openml | ||
boto3==1.26.98 | ||
requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
#!/usr/bin/env bash | ||
HERE=$(dirname "$0") | ||
VERSION=${1:-"stable"} | ||
REPO=${2:-"https://github.com/sapientml/sapientml"} | ||
PKG=${3:-"sapientml"} | ||
if [[ "$VERSION" == "latest" ]]; then | ||
VERSION="main" | ||
fi | ||
|
||
#create venv | ||
. ${HERE}/.setup/setup_env | ||
#create local venv | ||
. ${HERE}/../shared/setup.sh ${HERE} true | ||
PIP install --upgrade pip | ||
PIP install --no-cache-dir -r $HERE/requirements.txt | ||
|
||
PIP install -r ${HERE}/requirements.txt | ||
if [[ "$VERSION" == "stable" ]]; then | ||
PIP install --no-cache-dir -U ${PKG} | ||
elif [[ "$VERSION" =~ ^[0-9] ]]; then | ||
PIP install --no-cache-dir -U ${PKG}==${VERSION} | ||
else | ||
# PIP install --no-cache-dir -e git+${REPO}@${VERSION}#egg=${PKG} | ||
TARGET_DIR="${HERE}/lib/${PKG}" | ||
rm -Rf ${TARGET_DIR} | ||
git clone --depth 1 --single-branch --branch ${VERSION} --recurse-submodules ${REPO} ${TARGET_DIR} | ||
PIP install -U -e ${TARGET_DIR} | ||
fi | ||
|
||
PY -c "import pkg_resources; print(pkg_resources.get_distribution('sapientml').version)" >> "${HERE}/.setup/installed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters