-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamp_python.recipe
More file actions
78 lines (62 loc) · 2.17 KB
/
amp_python.recipe
File metadata and controls
78 lines (62 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Bootstrap: docker
From: fedora:41
%files
%post
dnf install -y dnf-plugins-core
dnf config-manager setopt install_weak_deps=False
#dnf config-manager -v --set-enabled crb
#dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
dnf update -y --exclude=filesystem
# install general packages
dnf install -y awscli2 ffmpeg-free ffmpeg-free-devel jq ImageMagick \
sox gnuplot tesseract
# install pre-build python packages
dnf install -y \
python3-azure-* \
python3-boto* \
python3-dlib \
python3-exif \
python3-filetype python3-ffmpeg-python \
python3-gmqtt python3-google-* python3-googleapis-* \
python3-jira python3-json* \
python3-ldap* python3-Levenshtein \
python3-markdown python3-matplotlib \
python3-numpy python3-num2words \
python3-oauth* python3-opencv \
python3-pillow python3-protobuf python3-psutil \
python3-pip \
python3-pydantic python3-pygraphviz python3-pytesseract \
python3-PyMySQL python3-pyyaml \
python3-requests \
python3-s3transfer python3-scipy python3-semver python3-sqlalchemy python3-ssh-python \
python3-textdistance* python3-tkinter python3-toml \
python3-urllib3
# install development tools
#dnf install -y cmake g++ gcc python3-devel make
# install more python packages
pip3 install jiwer py-trello
pip3 install face-recognition
pip3 install scenedetect
# spacy is failing?
pip3 install spacy
python3 -m spacy download en_core_web_lg
#dnf remove -y cmake g++ gcc make pipewire texlive proj-*
dnf clean all
%runscript
# Galaxy removes PYTHONPATH at startup because it interferes
# with the normal workings of galaxy. That's kind of a pain
# because we want to pass that to the tools so they don't have
# to look hard for the amp libraries.
#
# So...let's add it here, based on AMP_ROOT which /doesn't/
# get filtered by galaxy.
if [ -n "$AMP_ROOT" ]; then
PYROOT=$AMP_ROOT/amp_bootstrap
if [ -n "$PYTHONPATH" ]; then
export PYTHONPATH=$PYROOT:$PYTHONPATH
else
export PYTHONPATH=$PYROOT
fi
fi
exec python3 "$@"
# This is a pseudo comment to triger amp_python build to retrieve latest MGM dependencies: last updated on 2024-08-02