File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 33import os
44import sys
55from setuptools import setup
6+ from datetime import datetime
67
78from Cython .Build import cythonize
89from Cython .Distutils import build_ext
1819
1920_VM = sys .version_info .major
2021
22+ THE_TIME = datetime .now ()
23+ VERSION = f'''{ THE_TIME .year } .{ THE_TIME .month } .{ THE_TIME .day } ''' \
24+ f'''{ THE_TIME .hour * 3600 + THE_TIME .minute * 60 + THE_TIME .second } '''
2125
2226class BasePackagePatch_BuildExt (build_ext ):
2327 """ Create __init__.py for base package, after build
@@ -101,10 +105,11 @@ def compile(self):
101105 self ._package ()
102106
103107 setup (name = 'pyrobuf-generated' if not self .package else self .package ,
104- ext_modules = cythonize (self ._pyx_files ,
108+ version = VERSION ,
109+ ext_modules = cythonize (self ._pyx_files ,
105110 include_path = self .include_path ),
106- cmdclass = dict (build_ext = BasePackagePatch_BuildExt ),
107- script_args = script_args )
111+ cmdclass = dict (build_ext = BasePackagePatch_BuildExt ),
112+ script_args = script_args )
108113
109114 def extend (self , dist ):
110115 self ._compile_spec ()
Original file line number Diff line number Diff line change 1010import sys
1111
1212
13- VERSION = "0.9.3.8 "
13+ VERSION = "0.9.3.9 "
1414HERE = os .path .dirname (os .path .abspath (__file__ ))
1515PYROBUF_DEFS_PXI = "pyrobuf_defs.pxi"
1616PYROBUF_LIST_PXD = "pyrobuf_list.pxd"
You can’t perform that action at this time.
0 commit comments