Get rid of globally setting `_AIRFLOW__AS_LIBRARY` env vars in shared libraries
Open
area:core
kind:meta
- Dominant language
- Python
- Stars
- 46.9k
- Forks
- 17.8k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 483
Description
### Body
Discussion: https://github.com/apache/airflow/pull/59883#discussion_r2671243273
### Committer
- [x] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Contributor guide
Assessment
This issue has not been assessed yet.