Message6777
gderived.py fails on a Python 2.x Windows platform because os.path.samefile is not supported. This prevents the development of new built-in types. The templates section of "ant template" fails like this:
template-init:
[javac] .\build.xml:476: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to .\build\classes
template:
[gentempl] executing: python .\src\templates\gexpose.py --lazy
[gentempl] executing: python .\src\templates\gderived.py --lazy
[gentempl] Traceback (most recent call last):
[gentempl] File ".\src\templates\gderived.py", line 251, in <module>
[gentempl] Processing .\src\templates\ast_Subscript.derived into .\src\org\python\antlr\ast\SubscriptDerived.java
[gentempl] process(mapping[0], mapping[1], lazy)
[gentempl] File ".\src\templates\gderived.py", line 206, in process
[gentempl] result = hack_derived_header(outfile, result)
[gentempl] File ".\src\templates\gderived.py", line 215, in hack_derived_header
[gentempl] if os.path.samefile(parent, core_dir):
[gentempl] AttributeError: 'module' object has no attribute 'samefile'
I've replaced the (rather long) absolute path to the root of the project by "." in this dump. |
|
Date |
User |
Action |
Args |
2012-02-11 23:08:53 | jeff.allen | set | recipients:
+ jeff.allen |
2012-02-11 23:08:53 | jeff.allen | set | messageid: <1329001733.58.0.415450404634.issue1837@psf.upfronthosting.co.za> |
2012-02-11 23:08:53 | jeff.allen | link | issue1837 messages |
2012-02-11 23:08:52 | jeff.allen | create | |
|