GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-151042: venv: Pass VIRTUAL_ENV through cygpath inside fish on Windows by LuNoX · Pull Request #151043 · python/cpython

Conversation

@LuNoX

@LuNoX LuNoX commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

gh-151042: Fixed venv exporting mixed path styles to PATH on Windows inside fish (via Cygwin, MinGW or MSYS2)

This PR mirrors the changes from gh-103325, gh-125399 and gh-112508 to the fish activation script.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@LuNoX
LuNoX requested review from FFY00 and vsajip as code owners June 7, 2026 13:39
@bedevere-app bedevere-app Bot added the awaiting review label Jun 7, 2026
@python-cla-bot

python-cla-bot Bot commented Jun 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app

bedevere-app Bot commented Jun 7, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot mentioned this pull request Jun 7, 2026
venv: Activation in fish inside msys2 (or similar) breaks PATH #151042
Closed
@bedevere-app

bedevere-app Bot commented Jun 7, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LuNoX
LuNoX force-pushed the fix-fish-activation-on-windows-breaks-PATH branch from 43977d2 to afb462e Compare June 7, 2026 13:43
@bedevere-app

bedevere-app Bot commented Jun 7, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

LuNoX and others added 2 commits June 7, 2026 18:08
@LuNoX
Pass VIRTUAL_ENV through cygpath inside fish on Windows
31b3d74
@blurb-it @LuNoX
📜🤖 Added by blurb_it.
0694664
@LuNoX
LuNoX force-pushed the fix-fish-activation-on-windows-breaks-PATH branch from 9ac5922 to 0694664 Compare June 7, 2026 16:08
@LuNoX

LuNoX commented Jun 19, 2026 •
edited by vsajip
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@vsajip @FFY00 the equivalent PR was merged in both uv and virtualenv if you would like to compare for review :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vsajip

vsajip commented Jun 21, 2026

Copy link
Copy Markdown
Member

This patch and the virtualenv patch have

if string match -qr 'CYGWIN|MSYS|MINGW' (uname)

whereas the uv patch has

if string match -qr 'CYGWIN|MSYS|MINGW' (uname); and command -s cygpath >/dev/null

Isn't the more stringent check needed? Under CYGWIN one might expect cygpath to be available, but is it guaranteed to be present under MSYS/MINGW?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LuNoX

LuNoX commented Jun 21, 2026

Copy link
Copy Markdown
Contributor Author

This patch and the virtualenv patch have

if string match -qr 'CYGWIN|MSYS|MINGW' (uname)

whereas the uv patch has

if string match -qr 'CYGWIN|MSYS|MINGW' (uname); and command -s cygpath >/dev/null

Isn't the more stringent check needed? Under CYGWIN one might expect cygpath to be available, but is it guaranteed to be present under MSYS/MINGW?

@vsajip, it's not necessary. MSYS2 ships the Cygwin tool cygpath by default. MinGW as an environment requires MSYS2 to be installed. The codebase also uses cygpath unguarded at several points thus indicating that it is a requirement.

It's fine to add a guard clause as the uv devs requested, I don't see how it could hurt, but its also not required.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vsajip
vsajip merged commit 476b649 into python:main Jun 22, 2026
51 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting review label Jun 22, 2026
pyctrl pushed a commit to pyctrl/cpython that referenced this pull request Jul 5, 2026
@LuNoX @pyctrl
pythongh-151042: venv: Pass VIRTUAL_ENV through cygpath inside fish o…
be92b29
…n Windows (pythonGH-151043)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vsajip vsajip Awaiting requested review from vsajip vsajip is a code owner
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@LuNoX @vsajip
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.