Skip to content

Commit 24d754d

Browse files
Matthew Piechotkaalliepiper
authored andcommitted
Make generate_mk.py Python 3 compatible
1 parent 06ed5db commit 24d754d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

generate_mk.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# A single example or unit test source file generates its own executable
77
# This program is called by a top level Makefile, but can also be used stand-alone for debugging
88
# This program also generates testing.mk, examples.mk and dependencies.mk
9+
from __future__ import print_function
910
import sys
1011
import shutil as sh
1112
import os
@@ -31,7 +32,7 @@ def Glob(pattern, directory,exclude='\B'):
3132

3233

3334
def generate_test_mk(mk_path, test_path, group, TEST_DIR):
34-
print 'Generating makefiles in "'+mk_path+'" for tests in "'+test_path+'"'
35+
print('Generating makefiles in "'+mk_path+'" for tests in "'+test_path+'"')
3536
src_cu = Glob("*.cu", test_path, ".*testframework.cu$")
3637
src_cxx = Glob("*.cpp", test_path)
3738
src_cu.sort();
@@ -52,7 +53,7 @@ def generate_test_mk(mk_path, test_path, group, TEST_DIR):
5253
return [tests_all, dependencies_all]
5354

5455
def generate_example_mk(mk_path, example_path, group, EXAMPLE_DIR):
55-
print 'Generating makefiles in "'+mk_path+'" for examples in "'+example_path+'"'
56+
print('Generating makefiles in "'+mk_path+'" for examples in "'+example_path+'"')
5657
src_cu = Glob("*.cu", example_path)
5758
src_cxx = Glob("*.cpp", example_path)
5859
src_cu.sort();

0 commit comments

Comments
 (0)