mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-14 17:12:49 +08:00
patch + fix docs build (#2799)
This commit is contained in:
4
setup.py
4
setup.py
@@ -24,8 +24,8 @@ def get_version():
|
||||
if "#define MLX_VERSION_PATCH" in l:
|
||||
patch = l.split()[-1]
|
||||
version = f"{major}.{minor}.{patch}"
|
||||
pypi_release = os.environ.get("PYPI_RELEASE", False)
|
||||
dev_release = os.environ.get("DEV_RELEASE", False)
|
||||
pypi_release = int(os.environ.get("PYPI_RELEASE", 0))
|
||||
dev_release = int(os.environ.get("DEV_RELEASE", 0))
|
||||
if not pypi_release or dev_release:
|
||||
today = datetime.date.today()
|
||||
version = f"{version}.dev{today.year}{today.month:02d}{today.day:02d}"
|
||||
|
||||
Reference in New Issue
Block a user