fixup! Bump waf to 2.0.27.
[asdcplib.git] / wscript
diff --git a/wscript b/wscript
index 791325f8aa7d4abac8e7bddc89983029362284ca..2dd72283b814551c88cdf64c6fe2def456aa89cb 100644 (file)
--- a/wscript
+++ b/wscript
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
 import subprocess
 import shlex
 import os
@@ -8,8 +10,8 @@ from waflib import Logs
 APPNAME = 'libasdcp-cth'
 
 if os.path.exists('.git'):
-    this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0].decode('UTF-8')
-    last_version = subprocess.Popen(shlex.split('git describe --tags --abbrev=0'), stdout=subprocess.PIPE).communicate()[0].decode('UTF-8')
+    this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0].decode('utf-8')
+    last_version = subprocess.Popen(shlex.split('git describe --tags --abbrev=0'), stdout=subprocess.PIPE).communicate()[0]
     if this_version == '':
         VERSION = '%sdevel' % last_version[1:].strip()
     else:
@@ -106,5 +108,5 @@ def tags(bld):
 
 def dist(bld):
     f = open('VERSION', 'w')
-    print>>f,VERSION
+    print(VERSION, file=f)
     f.close()