Skip to content

Commit

Permalink
Merge pull request #329 from pariterre/dev
Browse files Browse the repository at this point in the history
Fixed regex for python setup install
  • Loading branch information
pariterre authored Jun 26, 2024
2 parents 73c40fa + 84b1917 commit a35c545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

with open(f"{dir_path}/CMakeLists.txt") as file:
for line in file:
match = re.search("project\(ezc3d VERSION ([0-9].[0-9].[0-9])\)", line)
match = re.search(re.compile("project\\(ezc3d VERSION (\\d*\\.\\d*\\.\\d*)\\)"), line)
if match is not None:
version = match[1]
break
Expand Down

0 comments on commit a35c545

Please sign in to comment.