-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devcontainer configurations to build wheel for each python version an…
…d to develop pymeshlab
- Loading branch information
1 parent
720afd3
commit 7b737b0
Showing
9 changed files
with
193 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "PyMeshLab wheel for Python 3.10", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"PYTHON_VERSION": "3.10" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
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,20 @@ | ||
{ | ||
"name": "PyMeshLab wheel for Python 3.11", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"PYTHON_VERSION": "3.11" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
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,20 @@ | ||
{ | ||
"name": "PyMeshLab wheel for Python 3.12", | ||
"dockerComposeFile": "../docker-compose.yml", | ||
"service": "devcontainer", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"PYTHON_VERSION": "3.12" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
// TODO | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
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,20 @@ | ||
{ | ||
"name": "PyMeshLab wheel for Python 3.8", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"PYTHON_VERSION": "3.8" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
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,20 @@ | ||
{ | ||
"name": "PyMeshLab wheel for Python 3.9", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"PYTHON_VERSION": "3.9" | ||
} | ||
}, | ||
"runArgs": [ | ||
"-v", "/lib/modules:/lib/modules", | ||
"--device", "/dev/fuse", | ||
"--cap-add", "SYS_ADMIN", | ||
"--security-opt", "apparmor=unconfined" | ||
], | ||
"workspaceFolder": "/workspaces/pymeshlab", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/pymeshlab,type=bind", | ||
|
||
"postStartCommand": "bash scripts/Linux/make_wheel.sh" | ||
} |
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 was deleted.
Oops, something went wrong.
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,62 @@ | ||
#!/bin/bash | ||
|
||
SCRIPTS_PATH="$(dirname "$(realpath "$0")")" | ||
SOURCE_PATH=$SCRIPTS_PATH/../.. | ||
|
||
BUILD_PATH=$SOURCE_PATH/build | ||
BUILD_OPTION="" | ||
|
||
INSTALL_PATH=$SOURCE_PATH/pymeshlab | ||
INSTALL_OPTION="" | ||
|
||
WHEELS_PATH=$SOURCE_PATH/wheels | ||
|
||
NIGHTLY_OPTION="" | ||
QT_OPTION="" | ||
CCACHE_OPTION="" | ||
|
||
#check parameters | ||
for i in "$@" | ||
do | ||
case $i in | ||
-b=*|--build_path=*) | ||
BUILD_PATH="${i#*=}" | ||
BUILD_OPTION="-b=${i#*=}" | ||
shift # past argument=value | ||
;; | ||
-i=*|--install_path=*) | ||
INSTALL_PATH="${i#*=}" | ||
INSTALL_OPTION="-i=${i#*=}" | ||
shift # past argument=value | ||
;; | ||
-w=*|--wheels_path=*) | ||
WHEELS_PATH="${i#*=}" | ||
shift # past argument=value | ||
;; | ||
-n|--nightly) | ||
NIGHTLY_OPTION="-n" | ||
shift # past argument=value | ||
;; | ||
-qt=*|--qt_dir=*) | ||
QT_OPTION="-qt=${i#*=}" | ||
shift # past argument=value | ||
;; | ||
--ccache) | ||
CCACHE_OPTION="--ccache" | ||
shift # past argument=value | ||
;; | ||
*) | ||
# unknown option | ||
;; | ||
esac | ||
done | ||
|
||
bash $SCRIPTS_PATH/1_build.sh $BUILD_OPTION $INSTALL_OPTION $NIGHTLY_OPTION $QT_OPTION $CCACHE_OPTION | ||
bash $SCRIPTS_PATH/2_deploy.sh $INSTALL_OPTION $QT_OPTION | ||
|
||
pip wheel $SOURCE_PATH -w $WHEELS_PATH | ||
|
||
rm -rf $BUILD_PATH | ||
rm -rf $INSTALL_PATH/pmeshlab* | ||
rm -rf $INSTALL_PATH/lib | ||
rm -rf pymeshlab.egg-info |