Skip to content

Commit

Permalink
Adjust bootstrap script to remove support for Python 2 (#243).
Browse files Browse the repository at this point in the history
This commit adjusts the bootstrap script to remove any logic pertaining to
Python 2, which IKOS no longer supports.
  • Loading branch information
ivanperez-keera committed Dec 13, 2023
1 parent 58660a6 commit 3ef9267
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ boost_required_version="1.55.0"
boost_install_version="1.70.0"
tbb_required_version="2"
tbb_install_version="11009"
python2_required_version="2.7.3"
python3_required_version="3.3"
python_install_version="2.7.16"
llvm_required_version="9"
Expand Down Expand Up @@ -775,8 +774,7 @@ function python_parse_version() {
function python_satisfies_requirements() {
local version=$1

([[ ${version:0:1} = 2 ]] && version_ge "$version" "$python2_required_version") ||
([[ ${version:0:1} = 3 ]] && version_ge "$version" "$python3_required_version")
([[ ${version:0:1} = 3 ]] && version_ge "$version" "$python3_required_version")
}

# Parse and detect the version of llvm-config, given the command name
Expand Down Expand Up @@ -2167,7 +2165,7 @@ fi
###############################

if (( ! found_python )); then
progress "Could NOT find Python >= $python2_required_version or >= $python3_required_version"
progress "Could NOT find Python >= $python3_required_version"

if [[ -x "$install_dir/python-$python_install_version/bin/python" ]]; then
progress "Using already built ${cgreen}python $python_install_version"
Expand Down

0 comments on commit 3ef9267

Please sign in to comment.