Skip to content

Commit c547d97

Browse files
authored
Auto merge of #2910 - BusyJay:master, r=alexcrichton
Fix python detection Some platform, like ArchLinux, may not have python in the PATH, but can still have python2. So we should add some fallback option to detect python correctly. This detection order is copy from [rust-lang/rust](https://github.com/rust-lang/rust/blob/master/configure#L742).
2 parents 5ce691c + f97f854 commit c547d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ fi
347347
step_msg "looking for build programs"
348348

349349
probe_need CFG_CURLORWGET curl wget
350-
probe_need CFG_PYTHON python
350+
probe_need CFG_PYTHON python2.7 python2 python
351351
probe_need CFG_CC cc gcc clang
352352

353353
if [ ! -z "${CFG_LOCAL_RUST_ROOT}" ]; then

0 commit comments

Comments
 (0)