Re: [pygccxml-development] Generated file name length
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-06-05 04:21:02
|
On 6/5/07, Allen Bierbaum <al...@vr...> wrote: > We have been running into a problem lately where py++ generates some > filenames that are so long they cause problems with some windows utilities. > > For example, one generated file was named: > > vector_less_boost_scope_shared_ptr_less_OSG_scope_SampleInfo_grate__comma__std_scope_allocator_less_boost_scope_shared_ptr_less_OSG_scope_SampleInfo_grate___grate___grate_.pypp.cpp > > Would it be possible to add a feature to py++ that would generate > shorter filenames? > For example maybe part of the filename could be > created by taking an md5 hash of the typename similar to how the > function transformer code generates a unique function name. Patch is welcome, really I am running out of time. Before you get down to the code be sure you read next two articles: http://language-binding.net/pyplusplus/documentation/how_to.html#py-generated-file-name-is-too-long http://language-binding.net/pyplusplus/documentation/hints.html#class-template-instantiation-alias They contain few quick work around. Also I think you will do your users happier, if you give much better name( alias ) to the class. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |