File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 44from setuptools import setup , find_packages , Extension
55
66VERSION = (0 , 7 , 0 )
7+ VERSION_STR = "." .join ([str (x ) for x in VERSION ])
78
89setup (
910 name = 'lz4' ,
10- version = "." . join ([ str ( x ) for x in VERSION ]) ,
11+ version = VERSION_STR ,
1112 description = "LZ4 Bindings for Python" ,
1213 long_description = open ('README.rst' , 'r' ).read (),
1314 author = 'Steeve Morin' ,
2627 "-Wall" ,
2728 "-W" ,
2829 "-Wundef" ,
30+ "-DVERSION=\" %s\" " % VERSION_STR ,
2931 "-DLZ4_VERSION=\" r119\" " ,
3032 ])
3133 ],
Original file line number Diff line number Diff line change @@ -202,6 +202,9 @@ void initlz4(void)
202202 INITERROR ;
203203 }
204204
205+ PyModule_AddStringConstant (module , "VERSION" , VERSION );
206+ PyModule_AddStringConstant (module , "LZ4_VERSION" , LZ4_VERSION );
207+
205208#if PY_MAJOR_VERSION >= 3
206209 return module ;
207210#endif
You can’t perform that action at this time.
0 commit comments