generated from teksi/template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace modelbaker plugin with modelbaker library
- Loading branch information
Showing
4 changed files
with
40 additions
and
34 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
teksi_wastewater/libs/ |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
LIBS_DIR="plugin/teksi_wastewater/libs" | ||
|
||
MODELBAKER_LIBRARY=("modelbaker" "1.6.0") | ||
|
||
PACKAGES=( | ||
MODELBAKER_LIBRARY[@] | ||
) | ||
|
||
#create lib folder | ||
mkdir -p $LIBS_DIR | ||
|
||
for PACKAGE in ${PACKAGES[@]}; do | ||
echo download and unpack ${!PACKAGE:0:1} with version ${!PACKAGE:1:1} | ||
#create temp folder | ||
mkdir -p temp | ||
#download the wheel | ||
pip download -v ${!PACKAGE:0:1}==${!PACKAGE:1:1} --only-binary :all: -d temp/ | ||
#unpack all the wheels found (means including dependencies) | ||
unzip -o "temp/*.whl" -d $LIBS_DIR | ||
#remove temp folder | ||
rm -r temp | ||
#set write rights to group (because qgis-plugin-ci needs it) | ||
chmod -R g+w $LIBS_DIR | ||
done | ||
|
||
#create the __init__.py in libs folder | ||
cd $LIBS_DIR | ||
touch __init__.py | ||
chmod g+w __init__.py |
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