You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/10/20 17:49:46 UTC

[PR] Put the PROD build virtualenv before /usr/python/bin on PATH [airflow]

potiuk opened a new pull request, #75236:
URL: https://github.com/apache/airflow/pull/75236

   Since the PROD image moved to hardened base images, `/usr/python` is a symlink to `/usr`. The build stage's `ENV PATH="/usr/python/bin:$PATH"` therefore puts Debian's pip ahead of the `~/.local` virtualenv. That pip's Python also sees `/usr/lib/python3/dist-packages`, so packages already there — `wheel` from Debian's `python3-wheel` — count as satisfied and never get installed into the virtualenv. The final image runs the virtualenv's Python, which does not see that directory, and `pip check` fails:
   
   ```
   snowflake-snowpark-python 1.55.2 requires wheel, which is not installed.
   ```
   
   Seen in "PROD image extra checks / pip-image / Build PROD pip image 3.11" on both `main` and `v3-4-test` (e.g. https://github.com/apache/airflow/actions/runs/39460224771/job/118773527475).
   
   The fix uses the same PATH order the main image already uses (virtualenv first). Reproduced on `ghcr.io/apache/airflow/base/python:3.11.17-debian13-dev`: with the current order `pip check` fails as above, with the virtualenv first it reports no broken requirements.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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


Re: [PR] Put the PROD build virtualenv before /usr/python/bin on PATH [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #75236:
URL: https://github.com/apache/airflow/pull/75236


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


Re: [PR] Put the PROD build virtualenv before /usr/python/bin on PATH [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #75236:
URL: https://github.com/apache/airflow/pull/75236#issuecomment-6297460010

   ### Backport successfully created: v3-4-test
   
   Note: As of [Merging PRs targeted for Airflow 3.X](https://github.com/apache/airflow/blob/main/dev/README_AIRFLOW3_DEV.md#merging-prs-targeted-for-airflow-3x)
   the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.
   
   In matter of doubt please ask in [#release-management](https://apache-airflow.slack.com/archives/C03G9H97MM2) Slack channel.
   
   <table>
           <tr>
           <th>Status</th>
           <th>Branch</th>
           <th>Result</th>
       </tr>
       <tr>
           <td>✅</td>
           <td>v3-4-test</td>
           <td><a href="https://github.com/apache/airflow/pull/75237"><img src="https://img.shields.io/badge/PR-75237-blue" alt="PR Link"></a></td>
       </tr>
   </table>


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