It's an interesting project, though I wish I knew where the bug is in our Thunderbird as oauth2 should just work.
It's been a long time (perhaps Firefox 10 development?) since I've played with this Python stuff. So far I've done,
yum install python3-setuptools python3-setuptools_scm
python -m ensurepip --upgrade
python -m pip install --upgrade pip
python -m pip install -r requirements-core.txt
Which results in this error, (rerunning the error causing command)
K:\work\email-oauth2-proxy>python -m pip install cryptography
WARNING: The directory 'w:/home/.cache/pip' or its parent directory is not owned
or is not writable by the current user. The cache has been disabled. Check the
permissions and owner of that directory. If executing pip with sudo, you should
use sudo's -H flag.
Collecting cryptography
Downloading cryptography-45.0.2.tar.gz (743 kB)
--------------------------------------- 743.9/743.9 kB 2.3 MB/s eta 0:00:00
ERROR: Invalid member in the tar file h:/tmp/pip-unpack-ye_q2rxg/cryptography-45
.0.2.tar.gz: '.gitattributes' would be extracted to 'h:/tmp/pip-install-zhxi8tme
/cryptography_a6b377d357bc4600a896c1f43f6d019b/.gitattributes', which is outside
the destination
So it doesn't like the idea of installing a hidden file (.gitattributes) in %TMPDIR%.
According to the documentation, shouldn't need the -m parameter either, but it results in,
K:\work\email-oauth2-proxy>python pip install cryptography
W:\USR\BIN\python.exe: can't open file 'K:/work/email-oauth2-proxy/pip': [Errno
2] No such file or directory
A python path issue?
Perhaps using _virtualenv would work if I can remember how to do it.