imports VERSION from version.py into setup.py
@@ -2,9 +2,24 @@ from setuptools import setup, find_packages
PACKAGE = 'catboost'
+def execfile(filepath, globals=None, locals=None):
+ if globals is None:
+ globals = {}
+ globals.update({
+ "__file__": filepath,
+ "__name__": "__main__",
+ })
+ with open(filepath, 'rb') as file:
+ exec(compile(file.read(), filepath, 'exec'), globals, locals)
+
+def version():
+ globals={}
+ execfile('./catboost/version.py', globals)
+ return globals['VERSION']
+
setup(
name=PACKAGE,
- version="0.13",
+ version=version(),
author="CatBoost Developers",
description="Python package for catboost",
