Commit 82861cf5 authored by Pierre-Henri Wuillemin's avatar Pierre-Henri Wuillemin

Merge branch 'master' into internal/minorGlitches

parents 7dff8988 b15240f4
......@@ -77,7 +77,7 @@ def go(current):
except CalledProcessError as err:
critic("Failed building pyAgrum", rc=err.returncode)
"shutil.rmtree(tmp, True)"
shutil.rmtree(tmp, True)
def prepare(current, tmp):
"""Prepare step for building the wheel: builds and install pyAgrum in the temporary
......@@ -165,11 +165,14 @@ def get_pyAgrum_version(path):
"""Look up the egg-file in the directory path generated by act when
installing pyAgrum to get pyAgrum's version."""
pattern = '^pyAgrum-([.0-9]+).*$'
files = [f for f in os.listdir(path) if isfile(join(path,f))]
for f in files:
m = re.match(pattern, f)
if m != None:
except FileNotFoundError:
warn("Error while accessing to path {0}".format(path))
warn("Could not retrieve pyAgrum version.")
return ""
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