kiwy42 opened a new issue #18794:
URL: https://github.com/apache/airflow/issues/18794
### Apache Airflow version
2.1.4 (latest released)
### Operating System
Linux
### Versions of Apache Airflow Providers
python-gitlab==2.10.0 requests==2.26.0 airflow-multi-dagrun==2.2.0
pyhdfs-client==0.1.3 apache-airflow-providers-apache-spark==2.0.1
apache-airflow-providers-apache-hive==2.0.1
### Deployment
Other Docker-based deployment
### Deployment details
When trying to install additionnal package from official image, I can
install the paquets mentionned above onlyh on Python 3.9.
On any other python version the installation of package failed because gcc
is missing to compile sasl package.
### What happened
_No response_
### What you expected to happen
I expect to be able to install those package on any version of python.
### How to reproduce
Dockerfile:
```
FROM apache/airflow:2.1.4
ARG additional_pip_package="python-gitlab==2.10.0 requests==2.26.0
airflow-multi-dagrun==2.2.0 pyhdfs-client==0.1.3
apache-airflow-providers-apache-spark==2.0.1
apache-airflow-providers-apache-hive==2.0.1"
USER root
USER airflow
# ajout de paquet pip
RUN python -m pip install ${additional_pip_package}
```
If you try this with `apache/airflow-python-3.9` it does work if you try any
other python version it doesn't.
I'd be happy to learn if I did anything wrong and how I should proceed.
I've tried to use breeze in the past to build custom version but it's a
major pain in the b*** as pip requirement file one day work and don't the next.
with the same parameter and git version.
### Anything else
nope
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]