~ubuntu-branches/debian/experimental/nuitka/experimental

« back to all changes in this revision

Viewing changes to misc/check-release

  • Committer: Package Import Robot
  • Author(s): Kay Hayen
  • Date: 2013-08-18 09:06:29 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: package-import@ubuntu.com-20130818090629-lz12hlck5ruvjbq4
Tags: upstream-0.4.5+ds
ImportĀ upstreamĀ versionĀ 0.4.5+ds

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
 
240
240
    parts[0] = parts[0].replace( "/", os.path.sep )
241
241
 
 
242
    # On Windows, we need to specify Python ourselves.
242
243
    if parts[0].endswith( ".py" ) and os.name == "nt":
243
 
        parts.insert( 0, r"C:\Python27\python.exe" )
 
244
        parts.insert( 0, sys.executable )
244
245
 
245
246
    command = " ".join( parts )
246
247
 
263
264
 
264
265
    if os.name == "nt":
265
266
        if use_python == "python2.6":
266
 
            os.environ[ "PYTHON" ] = r"C:\Python26\python.exe"
 
267
            if sys.version.startswith( "2.6"):
 
268
                os.environ[ "PYTHON" ] = sys.executable
 
269
            else:
 
270
                os.environ[ "PYTHON" ] = r"C:\Python26\python.exe"
267
271
        elif use_python == "python2.7":
268
 
            os.environ[ "PYTHON" ] = r"C:\Python27\python.exe"
 
272
            if sys.version.startswith( "2.7"):
 
273
                os.environ[ "PYTHON" ] = sys.executable
 
274
            else:
 
275
                os.environ[ "PYTHON" ] = r"C:\Python27\python.exe"
269
276
        elif use_python == "python3.2":
270
 
            os.environ[ "PYTHON" ] = r"C:\Python32\python.exe"
 
277
            if sys.version.startswith( "3.2"):
 
278
                os.environ[ "PYTHON" ] = sys.executable
 
279
            else:
 
280
                os.environ[ "PYTHON" ] = r"C:\Python32\python.exe"
271
281
        elif use_python == "python3.3":
272
 
            os.environ[ "PYTHON" ] = r"C:\Python33\python.exe"
 
282
            if sys.version.startswith( "3.3"):
 
283
                os.environ[ "PYTHON" ] = sys.executable
 
284
            else:
 
285
                os.environ[ "PYTHON" ] = r"C:\Python33\python.exe"
273
286
        else:
274
287
            assert False, use_python
275
288
    else: