mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-17 20:34:42 +00:00
Add Python 2.7 check to buildPy2exe
This commit is contained in:
parent
1db7e0e095
commit
2b14a94283
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user