Skip to content

Commit c904927

Browse files
committed
Merge pull request #2722 from bstrie/py2
Fail to configure without an LLVM-friendly Python
2 parents c2751c5 + 6322eda commit c904927

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

configure

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,13 @@ fi
311311
step_msg "looking for build programs"
312312

313313
probe_need CFG_PERL perl
314-
probe_need CFG_PYTHON python python2.6 python2 python3
315314
probe_need CFG_CURL curl
315+
probe_need CFG_PYTHON python2.7 python2.6 python2 python
316+
317+
python_version=$($CFG_PYTHON -V 2>&1)
318+
if [ $(echo $python_version | grep -c '^Python 2\.[4567]') -ne 1 ]; then
319+
err "Found $python_version, but LLVM requires Python 2.4-2.7"
320+
fi
316321

317322
# If we have no git directory then we are probably a tarball distribution
318323
# and shouldn't attempt to load submodules

0 commit comments

Comments
 (0)