~parthpanchl/gtg/workspace2

« back to all changes in this revision

Viewing changes to scripts/build_integrity.py

  • Committer: Parin Porecha
  • Date: 2014-01-31 06:59:35 UTC
  • mfrom: (1240.2.94 port-to-gtk3-py3)
  • Revision ID: parinporecha@gmail.com-20140131065935-ub6evnrwpmmm25hz
Merged the gtk3 and python3 port with GTG trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python2
 
1
#!/usr/bin/env python3
2
2
# -*- coding: UTF-8 -*-
3
3
# Copyright © 2012 Izidor Matušov <izidor.matusov@gmail.com
4
4
#
26
26
 
27
27
# Build MANIFEST and also run build action
28
28
if os.system("python setup.py sdist > /dev/null") != 0:
29
 
    print "sdist operation failed"
 
29
    print("sdist operation failed")
30
30
    sys.exit(1)
31
31
 
32
32
if os.system("python setup.py build > /dev/null") != 0:
33
 
    print "build operation failed"
 
33
    print("build operation failed")
34
34
    sys.exit(1)
35
35
 
36
36
manifest_files = []
64
64
missing_files = list(set(manifest_files) - set(build_files))
65
65
if len(missing_files) > 0:
66
66
    missing_files.sort()
67
 
    print "Missing build files:"
68
 
    print "\n".join("\t%s" % f for f in missing_files)
 
67
    print("Missing build files:")
 
68
    print("\n".join("\t%s" % f for f in missing_files))
69
69
    sys.exit(1)