Skip to content

Commit

Permalink
update distro/freebsd/install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jan 5, 2025
1 parent 442d758 commit be4f4e3
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions distro/freebsd/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

set -o errexit
set -o nounset
# In POSIX sh, set option pipefail is undefined
set -x

if [ "$(id -u)" != "0" ] ; then
Expand All @@ -20,21 +23,36 @@ fi
PYV=$(python3 -c 'import sys;v=sys.version_info;print(f"py{v.major}{v.minor}")')

# you can run "pkg install -f ..." to re-install a package
# if it's installed with pip3, pkg will still install it without "-f"
# if it's installed with pip3, pkg will still install it, even without "-f"

pkg install \
gettext \
gtksourceview4 \
OpenSSH-askpass \
"$PYV-packaging" \
"$PYV-gobject3" \
"$PYV-cairo" \
"$PYV-httplib2" \
"$PYV-dateutil" \
"$PYV-psutil" \
"$PYV-cachetools" \
"$PYV-requests" \
"$PYV-ujson" \
"$PYV-python-igraph" \
"$PYV-pygit2"
"$PYV-pygit2" \
"$PYV-pip"


pkg install "$PYV-dateutil" || \
python3 -m pip install dateutil || \
python3 -m pip install git+https://github.com/dateutil/dateutil

pkg install "$PYV-igraph" || \
python3 -m pip install igraph || \
echo "Failed to install igraph"

#pkg: No packages available to install matching 'packaging' have been found in the repositories
#pkg: No packages available to install matching 'py311-dateutil' have been found in the repositories
#pkg: No packages available to install matching 'py311-python-igraph' have been found in the repositories


# /usr/sbin/ntpdate exists by default, but couldn't figure out which package
# does it belong to
Expand Down

0 comments on commit be4f4e3

Please sign in to comment.