Skip to content

Commit

Permalink
Fix Python 3.12 install (#30)
Browse files Browse the repository at this point in the history
* Remove unnecessary setuptools restrictions

* Make cron job run later

* Use raw strings for regex

---------

Co-authored-by: Emily Bourne <emily.bourne@epfl.ch>
  • Loading branch information
EmilyBourne and EmilyBourne authored Feb 13, 2024
1 parent 8bf160a commit 6806148
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/daily_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Benchmarks

on:
schedule:
- cron: '30 21 * * *' # Check at 21:30 every day
- cron: '30 23 * * *' # Check at 23:30 every day

jobs:
Check_Pyccel_Version:
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def run_process(cmd: "List[str]", time_compilation: "bool"=False, env = None):
if verbose:
print(out, file=log_file, flush=True)
if pyperf:
regexp = re.compile('([0-9.]+) (\w\w\w?) \+- ([0-9.]+) (\w\w\w?)')
regexp = re.compile(r'([0-9.]+) (\w\w\w?) \+- ([0-9.]+) (\w\w\w?)')
r = regexp.search(out)
assert r.group(2) == r.group(4)
mean = float(r.group(1))
Expand All @@ -309,7 +309,7 @@ def run_process(cmd: "List[str]", time_compilation: "bool"=False, env = None):
stddev=stddev)
run_times.append((mean,stddev))
else:
regexp = re.compile('([0-9]+) loops?, best of ([0-9]+): ([0-9.]+) (\w*)')
regexp = re.compile(r'([0-9]+) loops?, best of ([0-9]+): ([0-9.]+) (\w*)')
r = regexp.search(out)
best = float(r.group(3))
units = r.group(4)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = [
"setuptools >= 37, < 61",
"setuptools",
"pyccel",
"pythran",
"numba",
Expand Down

0 comments on commit 6806148

Please sign in to comment.