You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/10/31 05:36:23 UTC

[airflow] branch main updated: Fix removal of AIRFLOW_HOME dir in virtualenv installation script (#27359)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new bc6a5335ed Fix removal of AIRFLOW_HOME dir in virtualenv installation script (#27359)
bc6a5335ed is described below

commit bc6a5335edbbf74f2672227a2cabffa0caa75573
Author: Robert Karish <ro...@gmail.com>
AuthorDate: Mon Oct 31 01:36:15 2022 -0400

    Fix removal of AIRFLOW_HOME dir in virtualenv installation script (#27359)
    
    * Fix airflow_home_dir type (#27338)
    
    * Fix script path in LOCAL_VIRTUALENV doc (#27338)
    
    * Change type of airflow_sources to Path (apache#27338)
---
 LOCAL_VIRTUALENV.rst                   | 4 ++--
 scripts/tools/initialize_virtualenv.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/LOCAL_VIRTUALENV.rst b/LOCAL_VIRTUALENV.rst
index 469eedbf43..3208634a4e 100644
--- a/LOCAL_VIRTUALENV.rst
+++ b/LOCAL_VIRTUALENV.rst
@@ -205,14 +205,14 @@ Activate your virtualenv, e.g. by using ``workon``, and once you are in it, run:
 
 .. code-block:: bash
 
-  ./scripts/ci/tools/initialize_virtualenv.py
+  ./scripts/tools/initialize_virtualenv.py
 
 By default Breeze installs the ``devel`` extra only. You can optionally control which extras are
 Adding extra dependencies as parameter.
 
 .. code-block:: bash
 
-  ./scripts/ci/tools/initialize_virtualenv.py devel,google,postgres
+  ./scripts/tools/initialize_virtualenv.py devel,google,postgres
 
 
 Developing Providers
diff --git a/scripts/tools/initialize_virtualenv.py b/scripts/tools/initialize_virtualenv.py
index e3affba428..8712517994 100755
--- a/scripts/tools/initialize_virtualenv.py
+++ b/scripts/tools/initialize_virtualenv.py
@@ -111,8 +111,8 @@ def main():
     """
     Setup local virtual environment.
     """
-    airflow_home_dir = os.environ.get("AIRFLOW_HOME", Path.home() / "airflow")
-    airflow_sources = str(Path(__file__).parents[2])
+    airflow_home_dir = Path(os.environ.get("AIRFLOW_HOME", Path.home() / "airflow"))
+    airflow_sources = Path(__file__).parents[2]
 
     if not check_if_in_virtualenv():
         print(