amordoch commented on issue #57426:
URL: https://github.com/apache/airflow/issues/57426#issuecomment-3457976584

   As you both said, the better fix is this:
   
   ```python
   import sys
   
   @task.virtualenv(
       requirements=[
           "apache-airflow-providers-amazon[s3fs]",
       ],
       pip_install_options=["--native-tls", "-c", 
"https://raw.githubusercontent.com/apache/airflow/refs/tags/constraints-3.1.0/constraints-{sys.version_info.major}.{sys.version_info.minor}.txt";],
       system_site_packages=True,
   )
   def my_task():
       ...
   ```


-- 
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]

Reply via email to