Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Paste
P365
build-ruamel-yaml-clib
Active
Public
Actions
Authored by
dereckson
on Oct 17 2024, 22:06.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F3665871: build-ruamel-yaml-clib
Oct 17 2024, 22:06
2024-10-17 22:06:14 (UTC+0)
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
/
Event Timeline
dereckson
created this paste.
Oct 17 2024, 22:06
2024-10-17 22:06:14 (UTC+0)
dereckson
mentioned this in
T2030: Provide wheel Python package for ruamel.yaml.clib in /opt/python
.
Oct 17 2024, 22:09
2024-10-17 22:09:38 (UTC+0)
Log In to Comment