| 929 |
|
try:
|
| 930 |
|
config = _load_data(os.path.join(HOMEPATH, 'config.dat'))
|
| 931 |
|
except IOError:
|
| 932 |
|
print "You must run Configure.py before building!"
|
| 933 |
|
sys.exit(1)
|
| 934 |
|
|
| 935 |
|
target_platform = config.get('target_platform', sys.platform)
|
| 936 |
|
target_iswin = target_platform[:3] == 'win'
|
| 937 |
|
|
| 938 |
|
if target_platform == sys.platform:
|
| 939 |
|
# _not_ cross compiling
|
| 940 |
|
if config['pythonVersion'] != sys.version:
|
| 941 |
|
print "The current version of Python is not the same with which PyInstaller was configured."
|
| 942 |
|
print "Please re-run Configure.py with this version."
|
| |
929 |
def main(specfile):
|
| |
930 |
global target_platform, target_iswin, config
|
| |
931 |
global icon, versionInfo
|
| |
932 |
|
| |
933 |
try:
|
| |
934 |
config = _load_data(os.path.join(HOMEPATH, 'config.dat'))
|
| |
935 |
except IOError:
|
| |
936 |
print "You must run Configure.py before building!"
|
| 945 |
|
if config['hasRsrcUpdate']:
|
| 946 |
|
import icon, versionInfo
|
| |
939 |
target_platform = config.get('target_platform', sys.platform)
|
| |
940 |
target_iswin = target_platform[:3] == 'win'
|
| |
941 |
|
| |
942 |
if target_platform == sys.platform:
|
| |
943 |
# _not_ cross compiling
|
| |
944 |
if config['pythonVersion'] != sys.version:
|
| |
945 |
print "The current version of Python is not the same with which PyInstaller was configured."
|
| |
946 |
print "Please re-run Configure.py with this version."
|
| |
947 |
sys.exit(1)
|
| |
948 |
|
| |
949 |
if config['hasRsrcUpdate']:
|
| |
950 |
import icon, versionInfo
|