potiuk commented on issue #56295: URL: https://github.com/apache/airflow/issues/56295#issuecomment-3364830396
> So, the only difference is that system_site_packages is true/false. The run_kwarg function does not use any airflow specific class or function. The first task still fails. If you are curious what's happening inside - look at the source code - you can take a look at https://github.com/apache/airflow/blob/main/providers/standard/src/airflow/providers/standard/utils/python_virtualenv_script.jinja2 which gets converted to PythonVirtualenv script that is passed to the venv. That might help you understand how Python Virtualenv works. Since you are very curious, maybe you will find some issue that cannot be explained by it - feel free to raise it. Might be a good exercise to debug things. I also recommend running unit tests for Python Virtualenv with debugger, while doing it, you can see the script that gets generated temporarily and see what causes the issue. -- 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]
