-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
275 additions
and
192 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9e3303edaba484df6004620bf7b28b98 | ||
c5339e572207211e46477825e8aca903 |
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
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,5 +1,32 @@ | ||
#!/bin/sh | ||
|
||
kclvm_path=$(cd `dirname $0`; pwd)/kclvm | ||
export PATHONPATH='' | ||
$kclvm_path -m kclvm "$@" | ||
# Stop on error. | ||
set -e | ||
|
||
# python3 path | ||
python3_bin=`which python3` | ||
kclvm_install_dir=$(cd `dirname $0`/..; pwd) | ||
pip_install_done_file="$kclvm_install_dir/lib/site-packages/kclvm.requirements.done.txt" | ||
|
||
# check python3 | ||
if [ -z "$python3_bin" ]; then | ||
echo "python3 not found!" | ||
exit 1 | ||
fi | ||
|
||
# once: pip install | ||
if [ ! -f $pip_install_done_file ]; then | ||
# check python3 version | ||
$python3_bin -c "import sys; sys.exit(0) if sys.version_info>=(3,7,3) else (print('please install python 3.7.3+') or sys.exit(1))" | ||
# pip install requirements.txt | ||
install_list=$kclvm_install_dir/requirements.txt | ||
target_dir=$kclvm_install_dir/lib/site-packages | ||
|
||
# kclvm pip install all libs | ||
$python3_bin -m pip install --target=$target_dir -r $install_list | ||
echo 'done' > $pip_install_done_file | ||
fi | ||
|
||
export PYTHONPATH=$kclvm_install_dir/lib/site-packages | ||
export KCLVM_CLI_BIN_PATH=$kclvm_install_dir/bin | ||
$python3_bin -m kclvm "$@" |
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,5 +1,32 @@ | ||
#!/bin/sh | ||
|
||
kclvm_path=$(cd `dirname $0`; pwd)/kclvm | ||
export PATHONPATH='' | ||
$kclvm_path -m kclvm.tools.docs "$@" | ||
# Stop on error. | ||
set -e | ||
|
||
# python3 path | ||
python3_bin=`which python3` | ||
kclvm_install_dir=$(cd `dirname $0`/..; pwd) | ||
pip_install_done_file="$kclvm_install_dir/lib/site-packages/kclvm.requirements.done.txt" | ||
|
||
# check python3 | ||
if [ -z "$python3_bin" ]; then | ||
echo "python3 not found!" | ||
exit 1 | ||
fi | ||
|
||
# once: pip install | ||
if [ ! -f $pip_install_done_file ]; then | ||
# check python3 version | ||
$python3_bin -c "import sys; sys.exit(0) if sys.version_info>=(3,7,3) else (print('please install python 3.7.3+') or sys.exit(1))" | ||
# pip install requirements.txt | ||
install_list=$kclvm_install_dir/requirements.txt | ||
target_dir=$kclvm_install_dir/lib/site-packages | ||
|
||
# kclvm pip install all libs | ||
$python3_bin -m pip install --target=$target_dir -r $install_list | ||
echo 'done' > $pip_install_done_file | ||
fi | ||
|
||
export PYTHONPATH=$kclvm_install_dir/lib/site-packages | ||
export KCLVM_CLI_BIN_PATH=$kclvm_install_dir/bin | ||
$python3_bin -m kclvm.tools.docs "$@" |
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,5 +1,32 @@ | ||
#!/bin/sh | ||
|
||
kclvm_path=$(cd `dirname $0`; pwd)/kclvm | ||
export PATHONPATH='' | ||
$kclvm_path -m kclvm.tools.format "$@" | ||
# Stop on error. | ||
set -e | ||
|
||
# python3 path | ||
python3_bin=`which python3` | ||
kclvm_install_dir=$(cd `dirname $0`/..; pwd) | ||
pip_install_done_file="$kclvm_install_dir/lib/site-packages/kclvm.requirements.done.txt" | ||
|
||
# check python3 | ||
if [ -z "$python3_bin" ]; then | ||
echo "python3 not found!" | ||
exit 1 | ||
fi | ||
|
||
# once: pip install | ||
if [ ! -f $pip_install_done_file ]; then | ||
# check python3 version | ||
$python3_bin -c "import sys; sys.exit(0) if sys.version_info>=(3,7,3) else (print('please install python 3.7.3+') or sys.exit(1))" | ||
# pip install requirements.txt | ||
install_list=$kclvm_install_dir/requirements.txt | ||
target_dir=$kclvm_install_dir/lib/site-packages | ||
|
||
# kclvm pip install all libs | ||
$python3_bin -m pip install --target=$target_dir -r $install_list | ||
echo 'done' > $pip_install_done_file | ||
fi | ||
|
||
export PYTHONPATH=$kclvm_install_dir/lib/site-packages | ||
export KCLVM_CLI_BIN_PATH=$kclvm_install_dir/bin | ||
$python3_bin -m kclvm.tools.format "$@" |
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,5 +1,33 @@ | ||
#!/bin/sh | ||
|
||
kclvm_path=$(cd `dirname $0`; pwd)/kclvm | ||
export PATHONPATH='' | ||
$kclvm_path -m kclvm.tools.lint.lint "$@" | ||
# Stop on error. | ||
set -e | ||
|
||
# python3 path | ||
python3_bin=`which python3` | ||
kclvm_install_dir=$(cd `dirname $0`/..; pwd) | ||
pip_install_done_file="$kclvm_install_dir/lib/site-packages/kclvm.requirements.done.txt" | ||
|
||
# check python3 | ||
if [ -z "$python3_bin" ]; then | ||
echo "python3 not found!" | ||
exit 1 | ||
fi | ||
|
||
# once: pip install | ||
if [ ! -f $pip_install_done_file ]; then | ||
# check python3 version | ||
$python3_bin -c "import sys; sys.exit(0) if sys.version_info>=(3,7,3) else (print('please install python 3.7.3+') or sys.exit(1))" | ||
# pip install requirements.txt | ||
install_list=$kclvm_install_dir/requirements.txt | ||
target_dir=$kclvm_install_dir/lib/site-packages | ||
|
||
# kclvm pip install all libs | ||
$python3_bin -m pip install --target=$target_dir -r $install_list | ||
echo 'done' > $pip_install_done_file | ||
fi | ||
|
||
export PYTHONPATH=$kclvm_install_dir/lib/site-packages | ||
export KCLVM_CLI_BIN_PATH=$kclvm_install_dir/bin | ||
$python3_bin -m kclvm.tools.lint "$@" | ||
|
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,5 +1,33 @@ | ||
#!/bin/sh | ||
|
||
kclvm_path=$(cd `dirname $0`; pwd)/kclvm | ||
export PATHONPATH='' | ||
$kclvm_path -m kclvm.tools.plugin "$@" | ||
# Stop on error. | ||
set -e | ||
|
||
# python3 path | ||
python3_bin=`which python3` | ||
kclvm_install_dir=$(cd `dirname $0`/..; pwd) | ||
pip_install_done_file="$kclvm_install_dir/lib/site-packages/kclvm.requirements.done.txt" | ||
|
||
# check python3 | ||
if [ -z "$python3_bin" ]; then | ||
echo "python3 not found!" | ||
exit 1 | ||
fi | ||
|
||
# once: pip install | ||
if [ ! -f $pip_install_done_file ]; then | ||
# check python3 version | ||
$python3_bin -c "import sys; sys.exit(0) if sys.version_info>=(3,7,3) else (print('please install python 3.7.3+') or sys.exit(1))" | ||
# pip install requirements.txt | ||
install_list=$kclvm_install_dir/requirements.txt | ||
target_dir=$kclvm_install_dir/lib/site-packages | ||
|
||
# kclvm pip install all libs | ||
$python3_bin -m pip install --target=$target_dir -r $install_list | ||
echo 'done' > $pip_install_done_file | ||
fi | ||
|
||
export PYTHONPATH=$kclvm_install_dir/lib/site-packages | ||
export KCLVM_CLI_BIN_PATH=$kclvm_install_dir/bin | ||
$python3_bin -m kclvm.tools.plugin "$@" | ||
|
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
Oops, something went wrong.