Page MenuHomeDevCentral
Paste P365

build-ruamel-yaml-clib
ActivePublic

Authored by dereckson on Thu, Oct 17, 22:06.
Tags
None
Referenced Files
F3665871: build-ruamel-yaml-clib
Thu, Oct 17, 22:06
Subscribers
None
#!/bin/sh
# -------------------------------------------------------------
# Build and provision .whl for ruamel.yaml.clib
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: BSD-2-Clause
# -------------------------------------------------------------
set -e
PORTS_DIR=/usr/ports/devel/py-ruamel.yaml.clib
TARGET_DIR=/opt/python
# -------------------------------------------------------------
# Ensure user is root
#
# Note: POSIX shells don't always define $UID or $EUID.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ "${EUID:-$(id -u)}" -ne 0 ]; then
echo "This command must be run as root." >&2
exit 1
fi
# -------------------------------------------------------------
# Build
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
cd $PORTS_DIR
make stage
PYTHON_SUFFIX=$(make -V PYTHON_SUFFIX)
find work-py$PYTHON_SUFFIX -name '*.whl' | xargs -I {} cp {} /opt/python/py$PYTHON_SUFFIX/