VirtualBox

Changeset 28367 in vbox for trunk/src/libs/xpcom18a4/python


Ignore:
Timestamp:
Apr 15, 2010 2:44:42 PM (15 years ago)
Author:
vboxsync
Message:

python: single Python selection support in multiversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/gen_python_deps.py

    r21254 r28367  
    3838    else:
    3939        lib64 = None
    40     return [os.path.join(p, "include", "python"+v), 
     40    return [os.path.join(p, "include", "python"+v),
    4141            lib,
    4242            lib64]
     
    5151
    5252def main(argv):
     53    global prefixes
     54    global versions
     55
    5356    dllpre = "lib"
    5457    dllsuff = ".so"
     
    6164
    6265    if len(argv) > 2:
    63         arch = argv[2]   
     66        arch = argv[2]
    6467    else:
    6568        arch = "unknown"
     69
     70    if len(argv) > 3:
     71        multi = int(argv[3])
     72    else:
     73        multi = 1
     74
     75    if multi == 0:
     76        prefixes = ["/usr"]
     77        versions = [str(sys.version_info[0])+'.'+str(sys.version_info[1])]
    6678
    6779    if target == 'darwin':
     
    89101    keys.sort()
    90102    d = None
    91     # We need separator other than newline, to sneak through $(shell) 
     103    # We need separator other than newline, to sneak through $(shell)
    92104    sep = "|"
    93105    for k in keys:
     
    97109        print_vars(vers, known[k], sep, bitness_magic)
    98110    if d is not None:
    99         print_vars("DEF", known[d], sep, bitness_magic) 
     111        print_vars("DEF", known[d], sep, bitness_magic)
    100112
    101113if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette