We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63ca6c6 commit 94dd94dCopy full SHA for 94dd94d
setup.py
@@ -39,7 +39,9 @@ def get_version():
39
with open(os.path.join(DIR, 'include/libjsonnet.h')) as f:
40
for line in f:
41
if '#define' in line and 'LIB_JSONNET_VERSION' in line:
42
- return line.partition('LIB_JSONNET_VERSION')[2].strip('\n "')
+ v_code = line.partition('LIB_JSONNET_VERSION')[2].strip('\n "')
43
+ if v_code[0] == "v":
44
+ v_code = v_code[1:]
45
46
class BuildJsonnetExt(BuildExt):
47
def run(self):
0 commit comments