25 lines · python
1"""For use on Windows. Run with:2 python.exe setup.py py2exe3 """4from __future__ import absolute_import, division, print_function5from distutils.core import setup6 7try:8 import py2exe9except ImportError:10 import platform11 import sys12 13 if platform.system() == "Windows":14 print("Could not find py2exe. Please install then run setup.py py2exe.")15 raise16 else:17 print("setup.py only required on Windows.")18 sys.exit(1)19 20setup(21 console=["check_cfc.py"],22 name="Check CFC",23 description="Check Compile Flow Consistency",24)25