setup.py 587 B

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