[cfe-dev] ccc using python 2.5 specific features
Török Edwin
edwintorok at gmail.com
Wed Jan 30 01:55:29 PST 2008
This used to work, but since I updated to latest SVN version of clang,
it no longer works:
$ /home/edwin/llvm-svn/llvm/tools/clang/utils/ccc p.c
Traceback (most recent call last):
File "/home/edwin/llvm-svn/llvm/tools/clang/utils/ccc", line 197, in ?
main(sys.argv[1:])
File "/home/edwin/llvm-svn/llvm/tools/clang/utils/ccc", line 186, in main
if extension(file) != "o":
File "/home/edwin/llvm-svn/llvm/tools/clang/utils/ccc", line 40, in
extension
return path.rpartition(".")[2]
AttributeError: 'str' object has no attribute 'rpartition'
$ python -V
Python 2.4.4
$ python2.5 -V
Python 2.5.2a0
I had to change the ccc script to use python2.5 explicitly:
#!/usr/bin/env python2.5
Best regards,
--Edwin
More information about the cfe-dev
mailing list