]> granicus.if.org Git - liblinear/commitdiff
udpated setup.py
authorSinacam <stinkingmadgod@gmail.com>
Tue, 8 Mar 2022 04:43:28 +0000 (12:43 +0800)
committerSinacam <stinkingmadgod@gmail.com>
Tue, 8 Mar 2022 04:43:28 +0000 (12:43 +0800)
python/setup.py

index 7adde99ddaeeacc907aec71a2390ae5500d5f154..6deb5399f8ecea309d8600b6dd67e94283f74673 100644 (file)
@@ -16,13 +16,7 @@ build_ext.get_export_symbols = lambda x, y: []
 
 PACKAGE_DIR = "liblinear"
 PACKAGE_NAME = "liblinear-official"
-with open('../linear.h') as f:
-    for l in f:
-        if l.startswith('#define LIBLINEAR_VERSION '):
-            num = l[:-1].split(' ')[-1]
-            VERSION = f'{num[0]}.{num[1:3]}.0'
-            break
-
+VERSION = "2.44.0"
 cpp_dir = "cpp-source"
 # should be consistent with dynamic_lib_name in liblinear/liblinear.py
 dynamic_lib_name = "clib"