Skip to content

Commit

Permalink
pyinstaller.py: skip Configure.py when using same python version as s…
Browse files Browse the repository at this point in the history
…pecified in config.dat

git-svn-id: http://svn.pyinstaller.org/trunk@1016 8dd32b29-ccff-0310-8a9a-9233e24343b1
  • Loading branch information
matysek committed Nov 10, 2010
1 parent bd7fa87 commit 7057c39
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyinstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@ def main(parser):
if not args:
parser.error('Requires at least one scriptname file or exactly one .spec-file')

run_configure(opts, args)
# Skip configuring when using the same python as specified in config.dat
try:
config = Build._load_data(opts.configfile)
if config['pythonVersion'] == sys.version:
print 'I: skip Configure.py, use existing config', opts.configfile
else:
run_configure(opts, args)
except IOError, SyntaxError:
run_configure(opts, args)

# Skip creating .spec when .spec file is supplied
if args[0].endswith('.spec'):
Expand Down

0 comments on commit 7057c39

Please sign in to comment.