Compare commits
3 commits
ee1cb0af52
...
c6798f7035
Author | SHA1 | Date | |
---|---|---|---|
c6798f7035 | |||
105216c6ec | |||
d57311f784 |
2 changed files with 8 additions and 7 deletions
|
@ -56,7 +56,7 @@ from various contexts of CA, CI and OCI / OS.
|
||||||
| SPCD_URL_DEBIAN | Debian repository URL | https://deb.debian.org |
|
| SPCD_URL_DEBIAN | Debian repository URL | https://deb.debian.org |
|
||||||
| SPCD_URL_EPEL | EPEL repository URL | https://dl.fedoraproject.org |
|
| SPCD_URL_EPEL | EPEL repository URL | https://dl.fedoraproject.org |
|
||||||
| SPCD_URL_FEDORA | Fedora repository URL | https://rpmfind.net |
|
| SPCD_URL_FEDORA | Fedora repository URL | https://rpmfind.net |
|
||||||
| SPCD_URL_PYTHON | Python repository URL | https://pypi.org/project |
|
| SPCD_URL_PYTHON | Python repository URL | https://pypi.org/simple |
|
||||||
| SPCD_URL_ROCKY | Rocky repository URL | https://dl.rockylinux.org |
|
| SPCD_URL_ROCKY | Rocky repository URL | https://dl.rockylinux.org |
|
||||||
| SPCD_URL_UBUNTU | Ubuntu repository URL | https://ubuntu.mirrors.ovh.net |
|
| SPCD_URL_UBUNTU | Ubuntu repository URL | https://ubuntu.mirrors.ovh.net |
|
||||||
|
|
||||||
|
|
13
spcd.sh
13
spcd.sh
|
@ -7,7 +7,7 @@
|
||||||
[ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9"
|
[ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9"
|
||||||
[ -n "${SPCD_GIT_MAIN}" ] || SPCD_GIT_MAIN="spcd"
|
[ -n "${SPCD_GIT_MAIN}" ] || SPCD_GIT_MAIN="spcd"
|
||||||
[ -n "${SPCD_GIT_ROOT}" ] || SPCD_GIT_ROOT="rwx"
|
[ -n "${SPCD_GIT_ROOT}" ] || SPCD_GIT_ROOT="rwx"
|
||||||
[ -n "${SPCD_URL_PYTHON}" ] || SPCD_URL_PYTHON="https://pypi.org/project"
|
[ -n "${SPCD_URL_PYTHON}" ] || SPCD_URL_PYTHON="https://pypi.org/simple"
|
||||||
|
|
||||||
# main
|
# main
|
||||||
spcd_main() {
|
spcd_main() {
|
||||||
|
@ -704,22 +704,23 @@ spcd_install_packages() {
|
||||||
index-url = ${SPCD_URL_PYTHON}
|
index-url = ${SPCD_URL_PYTHON}
|
||||||
"
|
"
|
||||||
spcd_split
|
spcd_split
|
||||||
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_VENV}"
|
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}"
|
||||||
spcd_split
|
spcd_split
|
||||||
. "${SPCD_VENV}/bin/activate"
|
. "${SPCD_PYTHON_VENV}/bin/activate"
|
||||||
spcd_split
|
spcd_split
|
||||||
pip install --upgrade "pip"
|
pip install --upgrade "pip"
|
||||||
spcd_split
|
spcd_split
|
||||||
pip install \
|
pip install \
|
||||||
"pelican" \
|
"pelican" \
|
||||||
"ruff" \
|
"ruff" \
|
||||||
"sphinx"
|
"sphinx" "sphinx-rtd-theme"
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_install_python_modules() {
|
spcd_install_python_modules() {
|
||||||
spcd_step "Install Python modules"
|
spcd_step "Install Python modules"
|
||||||
spcd_ipm__root="$(mktemp --directory)" || exit
|
spcd_ipm__root="$(mktemp --directory)" || exit
|
||||||
spcd_ipm__target="${SPCD_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages"
|
spcd_ipm__target="\
|
||||||
|
${SPCD_PYTHON_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages"
|
||||||
echo "→ ${spcd_ipm__root}"
|
echo "→ ${spcd_ipm__root}"
|
||||||
for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do
|
for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do
|
||||||
case "${spcd_ipm__repository}" in
|
case "${spcd_ipm__repository}" in
|
||||||
|
@ -948,7 +949,7 @@ SPCD_PM_APT="apt"
|
||||||
SPCD_PM_DNF="dnf"
|
SPCD_PM_DNF="dnf"
|
||||||
SPCD_PM_PACMAN="pacman"
|
SPCD_PM_PACMAN="pacman"
|
||||||
|
|
||||||
SPCD_VENV="/opt/venv"
|
SPCD_PYTHON_VENV="/opt/venv"
|
||||||
|
|
||||||
SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈"
|
SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue