1*7330f729Sjoerg"""For use on Windows. Run with: 2*7330f729Sjoerg python.exe setup.py py2exe 3*7330f729Sjoerg """ 4*7330f729Sjoergfrom __future__ import absolute_import, division, print_function 5*7330f729Sjoergfrom distutils.core import setup 6*7330f729Sjoergtry: 7*7330f729Sjoerg import py2exe 8*7330f729Sjoergexcept ImportError: 9*7330f729Sjoerg import platform 10*7330f729Sjoerg import sys 11*7330f729Sjoerg if platform.system() == 'Windows': 12*7330f729Sjoerg print("Could not find py2exe. Please install then run setup.py py2exe.") 13*7330f729Sjoerg raise 14*7330f729Sjoerg else: 15*7330f729Sjoerg print("setup.py only required on Windows.") 16*7330f729Sjoerg sys.exit(1) 17*7330f729Sjoerg 18*7330f729Sjoergsetup( 19*7330f729Sjoerg console=['check_cfc.py'], 20*7330f729Sjoerg name="Check CFC", 21*7330f729Sjoerg description='Check Compile Flow Consistency' 22*7330f729Sjoerg ) 23