Add Python 2.7 check to buildPy2exe
This commit is contained in:
parent
1db7e0e095
commit
2b14a94283
@ -1,11 +1,18 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#coding:utf8
|
#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 distutils.core import setup
|
||||||
from py2exe.build_exe import py2exe
|
from py2exe.build_exe import py2exe
|
||||||
from string import Template
|
from string import Template
|
||||||
|
|
||||||
import syncplay
|
import syncplay
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user