Page MenuHomeDevCentral

build-ruamel-yaml-clib

Authored By
dereckson
Oct 17 2024, 22:06
Size
1022 B
Referenced Files
None
Subscribers
None

build-ruamel-yaml-clib

#!/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/

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2201827
Default Alt Text
build-ruamel-yaml-clib (1022 B)

Event Timeline