mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
only use numeric version for build
This commit is contained in:
parent
4e2cac8e16
commit
d4c951c4de
1 changed files with 4 additions and 1 deletions
5
setup.py
5
setup.py
|
|
@ -2,6 +2,7 @@
|
|||
"""Setup info for building Pype 3.0."""
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
from cx_Freeze import setup, Executable
|
||||
|
|
@ -13,7 +14,9 @@ pype_root = Path(os.path.dirname(__file__))
|
|||
|
||||
with open(pype_root / "pype" / "version.py") as fp:
|
||||
exec(fp.read(), version)
|
||||
__version__ = version["__version__"]
|
||||
|
||||
version_match = re.search(r"(\d+\.\d+.\d+).*", version["__version__"])
|
||||
__version__ = version_match.group(1)
|
||||
|
||||
base = None
|
||||
if sys.platform == "win32":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue