[pygccxml-commit] SF.net SVN: pygccxml:[1596] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2009-01-19 22:29:18
|
Revision: 1596 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1596&view=rev Author: roman_yakovenko Date: 2009-01-19 22:15:33 +0000 (Mon, 19 Jan 2009) Log Message: ----------- embedding indexing suite into Py++ Modified Paths: -------------- pyplusplus_dev/pyplusplus/file_writers/writer.py pyplusplus_dev/unittests/autoconfig.py Modified: pyplusplus_dev/pyplusplus/file_writers/writer.py =================================================================== --- pyplusplus_dev/pyplusplus/file_writers/writer.py 2009-01-19 21:57:33 UTC (rev 1595) +++ pyplusplus_dev/pyplusplus/file_writers/writer.py 2009-01-19 22:15:33 UTC (rev 1596) @@ -36,6 +36,11 @@ self.__exposed_decls_db.register_decls( extmodule.global_ns , extmodule.specially_exposed_decls ) + def makedirs_for_file( self, file_path ): + destination_dir = os.path.dirname( file_path ) + if not os.path.exists( destination_dir ): + os.makedirs( destination_dir ) + @property def encoding( self ): """encoding name used to write generated code to files""" @@ -75,12 +80,16 @@ if cr.file_name in visited: continue - self.write_file( os.path.join( dir, cr.file_name ), cr.code ) + destination_path = os.path.normpath( os.path.join( dir, cr.file_name ) ) + self.makedirs_for_file( destination_path ) + self.write_file( destination_path, cr.code ) visited.add( cr.file_name ) for fdepend in code_repository.i_depend_on_them( cr.file_name ): if fdepend.file_name not in visited: - self.write_file( os.path.join( dir, fdepend.file_name ), fdepend.code ) + destination_path = os.path.normpath( os.path.join( dir, fdepend.file_name ) ) + self.makedirs_for_file( destination_path ) + self.write_file( destination_path, fdepend.code ) visited.add( fdepend.file_name ) @staticmethod Modified: pyplusplus_dev/unittests/autoconfig.py =================================================================== --- pyplusplus_dev/unittests/autoconfig.py 2009-01-19 21:57:33 UTC (rev 1595) +++ pyplusplus_dev/unittests/autoconfig.py 2009-01-19 22:15:33 UTC (rev 1596) @@ -41,7 +41,7 @@ class scons_config: libs = [] libpath = [ python.libs ] + boost.libs - cpppath = [ boost.include, python.include, indexing_suite.include ] + cpppath = [ boost.include, python.include, build_directory ] #indexing_suite.include ] include_dirs = cpppath + [data_directory] @staticmethod This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |