Skip to content

Commit 90dc16b

Browse files
authored
Add requirements file for Python 3.10 (#49)
* Add requirements file for Python 10 * Add Python 3.10 to GitHub Actions * Upgrade opencv-contrib-python-headless to 4.5.4.58 for Python 10 * Upgrade scipy to 1.7.2 for Python 3.10 * Upgrade multiple deps * Use custom DFL branch for python 3.10 * Pre-install numpy for Python 3.10 * Switch to opencv-python
1 parent a1c6ebd commit 90dc16b

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/verify-setup-catalina.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
python-version: [3.6, 3.7, 3.8, 3.9]
19+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
2020

2121
steps:
2222
- uses: actions/checkout@v2

requirements_3.10.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
numpy==1.22.2
2+
numexpr==2.8.1
3+
opencv-python==4.5.5.62
4+
scipy==1.8.0
5+
tensorflow==2.8.0
6+
colorama==0.4.4
7+
tqdm==4.62.3
8+
ffmpeg-python==0.2.0
9+
Pillow==8.4.0
10+
scikit-image==0.19.2
11+
h5py==3.6.0
12+
PyQt5==5.15.4

scripts/0_setup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ if is_arm64; then
6262

6363
h5py_pkg="$(cat $reqs_file | grep -E 'h5py==.+')"
6464
HDF5_DIR="$(brew --prefix hdf5)" pip --no-cache-dir install --no-build-isolation "$h5py_pkg"
65+
elif [ "$version" == "3.10" ]; then
66+
(cd .dfl/DeepFaceLab; git checkout support-opencv45)
67+
68+
numpy_pkg="$(cat $reqs_file | grep -E 'numpy==.+')"
69+
pip install "$numpy_pkg"
6570
fi
6671

6772
pip --no-cache-dir install -r $reqs_file

0 commit comments

Comments
 (0)