File tree 1 file changed +22
-0
lines changed 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
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')` ``.
You can’t perform that action at this time.
0 commit comments