Skip to content

Commit 957934e

Browse files
committed
chore(news): add fragment for PR 6737
1 parent 1c48fb8 commit 957934e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

news/5978.bugfix.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Improved virtualenv scripts path resolution
2+
3+
## Summary
4+
5+
This PR refactors the logic for determining virtual environment script paths
6+
by leveraging ``sysconfig``'s built-in mechanisms. By removing
7+
platform-dependent logic, ``pipenv`` now offers enhanced compatibility with
8+
POSIX-like environments, including Cygwin and MinGW. The fix also mitigates
9+
execution inconsistencies in non-native Windows environments, improving
10+
portability across platforms.
11+
12+
## Motivation
13+
14+
The original logic for determining the scripts path was unable to handle the
15+
deviations of MSYS2 MinGW CPython identifying as ``nt`` platform, yet using a
16+
POSIX ``{base}/bin`` path, instead of ``{base}/Scripts``.
17+
18+
## Changes
19+
20+
Removed custom logic for determining virtualenv scripts path in favor of
21+
retrieving the basename of the path string returned by
22+
``sysconfig.get_path('scripts')```.

0 commit comments

Comments
 (0)