File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 5
5
This document provides a high-level view of the changes to the {project-name} by release.
6
6
For a detailed view of what has changed, refer to the {uri-repo} /commits/master[commit history] on GitHub.
7
7
8
+ == Unreleased
9
+
10
+ * Fix bogus search for Python executable ({uri-repo})/issues/242[#242])
11
+
8
12
== 2.3.0 (2022-01-05) - @slonopotamus
9
13
10
14
* Add `Pygments.pygments_version` method to query underlying Pygments version ({uri-repo}/issues/226[#226])
Original file line number Diff line number Diff line change @@ -39,9 +39,7 @@ def python_binary
39
39
@python_binary ||= find_python_binary
40
40
end
41
41
42
- def python_binary = ( python_bin )
43
- @python_bin = python_bin
44
- end
42
+ attr_writer :python_binary
45
43
46
44
# Stop the child process by issuing a kill -9.
47
45
#
@@ -197,7 +195,11 @@ def popen4(argv)
197
195
198
196
# Detect a suitable Python binary to use.
199
197
def find_python_binary
200
- return %w[ py python3 python ] . first { |py | !which ( py ) . nil? } if Gem . win_platform?
198
+ if Gem . win_platform?
199
+ return %w[ py -3 ] if which ( 'py' )
200
+
201
+ return [ %w[ python3 python ] . find { |py | !which ( py ) . nil? } ]
202
+ end
201
203
202
204
# On non-Windows platforms, we simply rely on shebang
203
205
[ ]
You can’t perform that action at this time.
0 commit comments