Commit 321f1a32 authored by Timo Koch's avatar Timo Koch

[bin] Do not require setuptools for install.py

Use distutils from the standard library, although it implements an older notion of what a version is. But that is fine here.
parent 2ae44122
......@@ -7,7 +7,7 @@ import os
import sys
import subprocess
from distutils.spawn import find_executable
from pkg_resources import parse_version
from distutils.version import LooseVersion
def show_message(message):
print("*" * 120)
......@@ -18,7 +18,7 @@ def show_message(message):
def check_cpp_version():
requiredversion = "7"
result = subprocess.check_output(["g++", "-dumpversion"]).decode().strip()
if parse_version(result) < parse_version(requiredversion):
if LooseVersion(result) < LooseVersion(requiredversion):
print("-- An error occured while checking for prerequistes.")
raise Exception("g++ greater than or equal to {} is required for dumux releases >=3.2!".format(requiredversion))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment