You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/07/04 07:27:23 UTC

[GitHub] [airflow] uranusjr commented on issue #24783: Check if virtualenv is installed fails

uranusjr commented on issue #24783:
URL: https://github.com/apache/airflow/issues/24783#issuecomment-1173451201

   I’d prefer `find_spec` since it is a lot cheaper. If we want to be throughrall (make sure the package actually _works_ instead of just _present_), we can also do
   
   ```python
   try:
       import virtualenv
   except ImportError:
       # Not installed...
   ```
   
   which is still much cheaper. But it’s not really necessary IMO, a broken environment is the user’s problem.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org