File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
- import os
3
-
4
2
import numpy
5
3
from setuptools import Extension , setup
6
4
from setuptools .dist import Distribution
14
12
15
13
NAME : str = dist .get_name () # type: ignore
16
14
17
- # Handle builds of nightly release
18
- if "BUILD_PYTENSOR_NIGHTLY" in os .environ :
19
- NAME += "-nightly"
20
-
21
- from versioneer import get_versions as original_get_versions
22
-
23
- def get_versions ():
24
- from datetime import datetime , timezone
25
-
26
- suffix = datetime .now (timezone .utc ).strftime (r".dev%Y%m%d" )
27
- versions = original_get_versions ()
28
- versions ["version" ] = versions ["version" ].split ("+" )[0 ] + suffix
29
- return versions
30
-
31
- versioneer .get_versions = get_versions
32
-
33
15
34
16
if __name__ == "__main__" :
35
17
setup (
You can’t perform that action at this time.
0 commit comments