mailbagit
mailbagit copied to clipboard
Issues building dependencies with Python 3.12
Describe the bug Some dependencies that get built locally, like typed-ast and libpff-python, have trouble installing on Python 3.11. This is probably mostly an issue for Windows and slim docker images.
For slim docker images, this is resolved by installing gcc
:
apt update
apt install gcc
Most Linux distros and MacOS should already have this and build okay. This is a bigger issue for Windows, as even though everything builds fine on Python 3.10, there are no official installers for old Python versions now.
To Reproduce Steps to reproduce the behavior:
- Install Python 3.11
- run
pip install mailbag
There are still Windows installers for Python 3.10.11 which can be used to install mailbagit. However libpff-python
still often has issues building with certain versions of Windows C++ build tools.
Update, as of January 2024 mailbagit and libpff-python
in particular seems to build fine on Python 3.11, but there are issues with Python 3.12.
The 3.11 seemed to resolve itself as dependencies were updated, so I'm going to hold off one for a bit.