Add Python 2.7 check to buildPy2exe

This commit is contained in:
Etoh 2014-08-03 21:06:40 +01:00
parent 1db7e0e095
commit 2b14a94283

View File

@ -1,11 +1,18 @@
#!/usr/bin/env python
#coding:utf8
import sys
try:
if (sys.version_info.major != 2) or (sys.version_info.minor < 7):
raise Exception("You must build Syncplay with Python 2.7!")
except AttributeError:
import warnings
warnings.warn("You must build Syncplay with Python 2.7!")
from distutils.core import setup
from py2exe.build_exe import py2exe
from string import Template
import syncplay
import sys
import os
import subprocess