annotate clang/utils/check_cfc/setup.py @ 248:cfe92afade2b

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 16 Aug 2023 18:23:14 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 """For use on Windows. Run with:
anatofuz
parents:
diff changeset
2 python.exe setup.py py2exe
anatofuz
parents:
diff changeset
3 """
anatofuz
parents:
diff changeset
4 from __future__ import absolute_import, division, print_function
anatofuz
parents:
diff changeset
5 from distutils.core import setup
anatofuz
parents:
diff changeset
6 try:
anatofuz
parents:
diff changeset
7 import py2exe
anatofuz
parents:
diff changeset
8 except ImportError:
anatofuz
parents:
diff changeset
9 import platform
anatofuz
parents:
diff changeset
10 import sys
anatofuz
parents:
diff changeset
11 if platform.system() == 'Windows':
anatofuz
parents:
diff changeset
12 print("Could not find py2exe. Please install then run setup.py py2exe.")
anatofuz
parents:
diff changeset
13 raise
anatofuz
parents:
diff changeset
14 else:
anatofuz
parents:
diff changeset
15 print("setup.py only required on Windows.")
anatofuz
parents:
diff changeset
16 sys.exit(1)
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 setup(
anatofuz
parents:
diff changeset
19 console=['check_cfc.py'],
anatofuz
parents:
diff changeset
20 name="Check CFC",
anatofuz
parents:
diff changeset
21 description='Check Compile Flow Consistency'
anatofuz
parents:
diff changeset
22 )