2015-04-02 23:01:53 +08:00
|
|
|
"""For use on Windows. Run with:
|
|
|
|
python.exe setup.py py2exe
|
|
|
|
"""
|
2018-12-19 00:07:37 +08:00
|
|
|
from __future__ import absolute_import, division, print_function
|
2015-04-02 23:01:53 +08:00
|
|
|
from distutils.core import setup
|
|
|
|
try:
|
|
|
|
import py2exe
|
|
|
|
except ImportError:
|
|
|
|
import platform
|
|
|
|
import sys
|
|
|
|
if platform.system() == 'Windows':
|
2018-12-18 16:36:33 +08:00
|
|
|
print("Could not find py2exe. Please install then run setup.py py2exe.")
|
2015-04-02 23:01:53 +08:00
|
|
|
raise
|
|
|
|
else:
|
2018-12-18 16:36:33 +08:00
|
|
|
print("setup.py only required on Windows.")
|
2015-04-02 23:01:53 +08:00
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
setup(
|
|
|
|
console=['check_cfc.py'],
|
|
|
|
name="Check CFC",
|
|
|
|
description='Check Compile Flow Consistency'
|
|
|
|
)
|