Message6777

Author jeff.allen
Recipients jeff.allen
Date 2012-02-11.23:08:52
SpamBayes Score 3.633277e-11
Marked as misclassified No
Message-id <1329001733.58.0.415450404634.issue1837@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-02-11 23:08:53jeff.allensetrecipients: + jeff.allen
2012-02-11 23:08:53jeff.allensetmessageid: <1329001733.58.0.415450404634.issue1837@psf.upfronthosting.co.za>
2012-02-11 23:08:53jeff.allenlinkissue1837 messages
2012-02-11 23:08:52jeff.allencreate