VirtualBox

Changeset 20952 in vbox for trunk/src/libs


Ignore:
Timestamp:
Jun 25, 2009 4:18:39 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49132
Message:

Python: multiversion cleanup

Location:
trunk/src/libs/xpcom18a4/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/Makefile.kmk

    r20951 r20952  
    2424
    2525# list of supported Python versions
    26 $(eval $(patsubst %|,%$(NL) ,$(shell $(VBOX_BLD_PYTHON) $(PATH_SUB_CURRENT)/gen_python_deps.py)))
     26$(eval $(patsubst %|,%$(NL),$(shell $(VBOX_BLD_PYTHON) $(PATH_SUB_CURRENT)/gen_python_deps.py)))
    2727
    2828# Python Client Module - the C++/XPCOM bits.
  • trunk/src/libs/xpcom18a4/python/gen_python_deps.py

    r20951 r20952  
    2626    file =  os.path.join(p, "include", "python"+v, "Python.h")
    2727    # or just stat()?
    28     try:
    29         lf = open(file, 'r')
    30     except IOError,e:
     28    if not os.path.isfile(file):
    3129        return None
    32     lf.close()
    3330    return [os.path.join(p, "include", "python"+v),
    3431            os.path.join(p, "lib", "libpython"+v+".so")]
     
    4542    keys.sort()
    4643    d = None
     44    # We need separator other than newline, to sneak through $(shell) 
     45    sep = "|"
    4746    for k in keys:
    4847        if d is None:
    4948            d = k
    5049        vers = k.replace('.', '')
    51         print "VBOX_PYTHON%s_INC=%s|" %(vers, known[k][0])
    52         print "VBOX_PYTHON%s_LIB=%s|" %(vers, known[k][1])
     50        print "VBOX_PYTHON%s_INC=%s%s" %(vers, known[k][0], sep)
     51        print "VBOX_PYTHON%s_LIB=%s%s" %(vers, known[k][1], sep)
    5352    if d is not None:
    54         print "VBOX_PYTHONDEF_INC=%s|" %(known[d][0])
    55         print "VBOX_PYTHONDEF_LIB=%s|" %(known[d][1])
     53        print "VBOX_PYTHONDEF_INC=%s%s" %(known[d][0], sep)
     54        print "VBOX_PYTHONDEF_LIB=%s%s" %(known[d][1], sep)
    5655
    5756if __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