[memprof] Upgrade a unit test to MemProf Version 3 (#117063)
[llvm-project.git] / clang / utils / check_cfc / setup.py
blob7a4760c72877acf5df42c7ed6899eaf5f2ea5141
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
7 try:
8 import py2exe
9 except ImportError:
10 import platform
11 import sys
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)
20 setup(
21 console=["check_cfc.py"],
22 name="Check CFC",
23 description="Check Compile Flow Consistency",