-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update install script for python tools (#44)
* update CI envs * use latest action * update * update * specify python executable explicitly * check site-packages directory names * apt update
- Loading branch information
Showing
13 changed files
with
36 additions
and
39 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 |
---|---|---|
|
@@ -11,24 +11,24 @@ on: | |
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Inject slug/short variables | ||
uses: rlespinasse/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: main | ||
|
||
- name: Checkout gh-pages | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
path: gh-pages | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 | ||
|
||
|
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
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,7 +1,6 @@ | ||
#!@PYTHON_EXECUTABLE@ | ||
import sys | ||
sys.path.append('@CMAKE_CURRENT_BINARY_DIR@') | ||
sys.path.append('@pythonpath_build@') | ||
from dsqss.dla_pre import main | ||
if __name__ == '__main__' : | ||
main() |
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,16 +1,18 @@ | ||
PYTHONPATH_BUILD=@pythonpath_build@ | ||
export PYTHONPATH=@pythonpath_path@ | ||
PREFIX=@CMAKE_INSTALL_PREFIX@ | ||
# export PIPX_HOME=@CMAKE_INSTALL_PREFIX@/pipx | ||
# export PIPX_BIN_DIR=@CMAKE_INSTALL_PREFIX@/bin | ||
|
||
cd @CMAKE_CURRENT_BINARY_DIR@ | ||
|
||
find @CMAKE_INSTALL_PREFIX@/bin -name 'dla_*' | xargs rm -f | ||
rm -f @CMAKE_INSTALL_PREFIX@/bin/pmwa_pre | ||
# echo "-- Installing poetry to $PYTHONPATH_BUILD" | ||
# @PYTHON_EXECUTABLE@ -m pip install --prefix=$PYTHONPATH_BUILD poetry-core poetry | ||
echo "-- Installing dsqss tools to $PREFIX" | ||
# echo "--- PYTHONPATH=$PYTHONPATH" | ||
# PYTHONPATH=$PYTHONPATH @PYTHON_EXECUTABLE@ -c 'import poetry; print(poetry.__path__)' | ||
@PYTHON_EXECUTABLE@ -m pip install --prefix=$PREFIX --no-deps @CMAKE_CURRENT_SOURCE_DIR@ | ||
|
||
echo "export PATH=${PREFIX}/bin:\$PATH" > dsqssvars.sh | ||
|
||
# Some systems like Ubuntu 22.04 install python packages under ${PREFIX}/local instead of ${PREFIX} | ||
if [ -d ${PREFIX}/local ]; then | ||
echo "export PATH=${PREFIX}/local/bin:\$PATH" >> dsqssvars.sh | ||
fi | ||
DSQSS_PYTHONPATH=$(@PYTHON_EXECUTABLE@ @CMAKE_CURRENT_SOURCE_DIR@/cmake/get_site_packages.py $PREFIX) | ||
|
||
echo "export PYTHONPATH=${DSQSS_PYTHONPATH}:\$PYTHONPATH" >> dsqssvars.sh | ||
mkdir -p ${PREFIX}/share/dsqss | ||
cp dsqssvars.sh ${PREFIX}/share/dsqss/dsqssvars-@[email protected] |
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