*** /tmp/py_compile.py 2011-07-23 11:31:55.096494000 +0200 --- /usr/lib/python3.2/py_compile.py 2011-03-25 20:28:29.000000000 +0100 *************** *** 130,137 **** else: cfile = imp.cache_from_source(file) try: ! dirname = os.path.dirname(cfile) ! if len(dirname): os.makedirs(dirname) except OSError as error: if error.errno != errno.EEXIST: raise --- 130,136 ---- else: cfile = imp.cache_from_source(file) try: ! os.makedirs(os.path.dirname(cfile)) except OSError as error: if error.errno != errno.EEXIST: raise