xref: /llvm-project/clang/utils/check_cfc/setup.py (revision dd3c26a045c081620375a878159f536758baba6e)
1"""For use on Windows. Run with:
2    python.exe setup.py py2exe
3    """
4from __future__ import absolute_import, division, print_function
5from distutils.core import setup
6
7try:
8    import py2exe
9except ImportError:
10    import platform
11    import sys
12
13    if platform.system() == "Windows":
14        print("Could not find py2exe. Please install then run setup.py py2exe.")
15        raise
16    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