xref: /aosp_15_r20/external/clang/utils/check_cfc/setup.py (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li"""For use on Windows. Run with:
2*67e74705SXin Li    python.exe setup.py py2exe
3*67e74705SXin Li    """
4*67e74705SXin Lifrom distutils.core import setup
5*67e74705SXin Litry:
6*67e74705SXin Li    import py2exe
7*67e74705SXin Liexcept ImportError:
8*67e74705SXin Li    import platform
9*67e74705SXin Li    import sys
10*67e74705SXin Li    if platform.system() == 'Windows':
11*67e74705SXin Li        print "Could not find py2exe. Please install then run setup.py py2exe."
12*67e74705SXin Li        raise
13*67e74705SXin Li    else:
14*67e74705SXin Li        print "setup.py only required on Windows."
15*67e74705SXin Li        sys.exit(1)
16*67e74705SXin Li
17*67e74705SXin Lisetup(
18*67e74705SXin Li      console=['check_cfc.py'],
19*67e74705SXin Li      name="Check CFC",
20*67e74705SXin Li      description='Check Compile Flow Consistency'
21*67e74705SXin Li      )
22