Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion classes/python3/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,27 @@ depends:

buildSetup: |
python3Build () {
# parse arguments
OPTIND=1
local opt
local ARGS=()
while getopts "w" opt ; do
case "$opt" in
w)
ARGS+=("--wheel")
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
esac
done
shift $(( OPTIND -1 ))

rm -rf build install && mkdir -p build install
pushd build
rsync -a --delete $1/ .
python3 -m build -n .
python3 -m build -n ${ARGS[@]} .
python3 -m installer dist/*.whl --prefix ../install/usr/
popd
}