Airflow module comes with a main pip package apache-airflow and multiple subpackages to install only what we need (check doc https://airflow.incubator.apache.org/installation.html#extra-packages)
I would like to test if a subpackage is installed or not (and for example get a bash command to know if apache-airflow[mysql] is installed).
To know if apache-airflow is installed, I can do pip show apache-airflow and get 0 as exit code if installed, 1 otherwise. If I do pip show apache-airflow['mysql'], I always get 1 as exit code, the subpackage being installed or not.
And I could not find any option for that. Any idea?