pygccxml-commit Mailing List for C++ Python language bindings (Page 73)
Brought to you by:
mbaas,
roman_yakovenko
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(190) |
Apr
(166) |
May
(170) |
Jun
(75) |
Jul
(105) |
Aug
(131) |
Sep
(99) |
Oct
(84) |
Nov
(67) |
Dec
(54) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(66) |
Feb
(49) |
Mar
(25) |
Apr
(62) |
May
(21) |
Jun
(34) |
Jul
(9) |
Aug
(21) |
Sep
(5) |
Oct
|
Nov
(63) |
Dec
(34) |
2008 |
Jan
(10) |
Feb
(42) |
Mar
(26) |
Apr
(25) |
May
(6) |
Jun
(40) |
Jul
(18) |
Aug
(29) |
Sep
(6) |
Oct
(32) |
Nov
(14) |
Dec
(56) |
2009 |
Jan
(127) |
Feb
(52) |
Mar
(2) |
Apr
(10) |
May
(29) |
Jun
(3) |
Jul
|
Aug
(16) |
Sep
(4) |
Oct
(11) |
Nov
(8) |
Dec
(14) |
2010 |
Jan
(31) |
Feb
(1) |
Mar
(7) |
Apr
(9) |
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(8) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <rom...@us...> - 2006-05-02 04:55:13
|
Revision: 41 Author: roman_yakovenko Date: 2006-05-01 21:54:58 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=41&view=rev Log Message: ----------- adding new unit tests/package from boost - random Added Paths: ----------- pyplusplus_dev/examples/pyboost_dev/pyboost/random/ pyplusplus_dev/examples/pyboost_dev/pyboost/random/generate_code.py pyplusplus_dev/examples/pyboost_dev/pyboost/random/generated/ pyplusplus_dev/examples/pyboost_dev/pyboost/random/sconstruct pyplusplus_dev/examples/pyboost_dev/pyboost/random/settings.py Added: pyplusplus_dev/examples/pyboost_dev/pyboost/random/generate_code.py =================================================================== --- pyplusplus_dev/examples/pyboost_dev/pyboost/random/generate_code.py (rev 0) +++ pyplusplus_dev/examples/pyboost_dev/pyboost/random/generate_code.py 2006-05-02 04:54:58 UTC (rev 41) @@ -0,0 +1,97 @@ +#! /usr/bin/python +# Copyright 2004 Roman Yakovenko. +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + + +import os +import sys +import time +import shutil +import settings +from pygccxml import parser +from pygccxml import declarations +from pyplusplus import code_creators +from pyplusplus import module_builder + +LICENSE = """// Copyright 2004 Roman Yakovenko. +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +""" + +class code_generator_t(object): + def __init__(self): + self.__file = os.path.join( settings.boost.include + , 'libs', 'random', 'random_test.cpp' ) + self.__mb = module_builder.module_builder_t( + [ parser.create_cached_source_fc( + self.__file + , os.path.join( settings.generated_files_dir, 'random_test.xml' ) ) ] + , gccxml_path=settings.gccxml.executable + , include_paths=[settings.boost.include] + , undefine_symbols=settings.undefined_symbols) + + def filter_declarations(self ): + self.__mb.global_ns.exclude() + boost_ns = self.__mb.global_ns.namespace( 'boost', recursive=False ) + boost_ns.namespace( 'random' ).include() + boost_ns.namespaces( 'detail' ).exclude() + for cls in boost_ns.namespace( 'random' ).classes(): + if cls.ignore: + continue + else: + aliases = set([ t.name for t in cls.typedefs ]) + for alias in [ 'engine_value_type', 'value_type', 'base_type', 'engine_type' ]: + if alias in aliases: + aliases.remove( alias ) + if len( aliases ) == 1: + cls.alias = list( aliases )[0] + else: + print cls.name + for t in aliases: + print ' ', t + + boost_ns.free_functions( "lessthan_signed_unsigned" ).exclude() + boost_ns.free_functions( "equal_signed_unsigned" ).exclude() + + def beautify_code( self ): + extmodule = self.__mb.code_creator + position = extmodule.last_include_index() + 1 + extmodule.adopt_creator( code_creators.namespace_using_t( 'boost' ) + , position ) + + def customize_extmodule( self ): + global LICENSE + extmodule = self.__mb.code_creator + #beautifying include code generation + extmodule.license = LICENSE + extmodule.user_defined_directories.append( settings.boost.include ) + extmodule.user_defined_directories.append( settings.working_dir ) + extmodule.user_defined_directories.append( settings.generated_files_dir ) + extmodule.precompiled_header = 'boost/python.hpp' + self.beautify_code( ) + + def write_files( self ): + self.__mb.write_module( os.path.join( settings.generated_files_dir, 'random.pypp.cpp' ) ) + + def create(self): + start_time = time.clock() + self.filter_declarations() + + self.__mb.build_code_creator( settings.module_name ) + + self.customize_extmodule() + self.write_files( ) + print 'time taken : ', time.clock() - start_time, ' seconds' + +def export(): + cg = code_generator_t() + cg.create() + +if __name__ == '__main__': + export() + print 'done' + + Added: pyplusplus_dev/examples/pyboost_dev/pyboost/random/sconstruct =================================================================== --- pyplusplus_dev/examples/pyboost_dev/pyboost/random/sconstruct (rev 0) +++ pyplusplus_dev/examples/pyboost_dev/pyboost/random/sconstruct 2006-05-02 04:54:58 UTC (rev 41) @@ -0,0 +1,54 @@ +#! /usr/bin/python +# Copyright 2004 Roman Yakovenko. +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +import os +import sys +from environment import settings + +def get_shlibsuffix(): + if sys.platform == 'win32': + return '.pyd' + else: + return '.so' + +def get_ccflags(): + if sys.platform == 'win32': + return [ '/MD' + , '/EHsc' + , '/GR' + , '/Zc:wchar_t' + , '/Zc:forScope' + , '/GR' ] \ + + map( lambda ds: '/D%s' % ds, settings.defined_symbols ) + else: + return map( lambda ds: '-D' + ds, settings.defined_symbols ) + +def get_py_date_time_files(): + source_files = filter( lambda s: s.endswith( '.cpp' ), os.listdir(settings.generated_files_dir) ) + return map( lambda fname: os.path.join( settings.generated_files_dir, fname ), source_files ) + +def get_libs(): + if sys.platform == 'win32': + return ['boost_python' ] #python24.lib + else: + return ['boost_python', 'libboost_date_time-gcc-1_34'] + +def get_target(): + return os.path.join( settings.unittests_dir + , settings.module_name + get_shlibsuffix() ) + +SharedLibrary( target=get_target() + , source=get_py_date_time_files() + , LIBS=get_libs() + , LIBPATH=[ settings.boost_libs_path, settings.python_libs_path ] + , CPPPATH=[ settings.boost_path + , settings.working_dir + , settings.python_include_path + , settings.generated_files_dir ] + , CCFLAGS=get_ccflags() + , SHLIBPREFIX='' + , SHLIBSUFFIX=get_shlibsuffix() +) Added: pyplusplus_dev/examples/pyboost_dev/pyboost/random/settings.py =================================================================== --- pyplusplus_dev/examples/pyboost_dev/pyboost/random/settings.py (rev 0) +++ pyplusplus_dev/examples/pyboost_dev/pyboost/random/settings.py 2006-05-02 04:54:58 UTC (rev 41) @@ -0,0 +1,25 @@ +#! /usr/bin/python +# Copyright 2004 Roman Yakovenko. +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +import os +import sys + +_script_dir = os.path.split( os.path.abspath( sys.argv[0] ) )[0] +environment_path = os.path.normpath( os.path.join( _script_dir, '..', '..', '..', '..' ) ) + +sys.path.append( environment_path ) + +from environment import boost, scons, gccxml + +module_name = '_random_' +working_dir = _script_dir +generated_files_dir = os.path.join( _script_dir, 'generated' ) +unittests_dir = os.path.join( _script_dir, '..', '..', 'unittests', 'random' ) + +undefined_symbols = [ '__MINGW32__' ] +#defined_symbols = ['BOOST_DATE_TIME_NO_MEMBER_INIT'] +#if sys.platform == 'win32': + #defined_symbols.extend( [ 'BOOST_DATE_TIME_DYN_LINK' ] ) \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:52:59
|
Revision: 40 Author: roman_yakovenko Date: 2006-05-01 21:52:52 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=40&view=rev Log Message: ----------- updating setup.py to use epydoc api Modified Paths: -------------- pyplusplus_dev/setup.py Modified: pyplusplus_dev/setup.py =================================================================== --- pyplusplus_dev/setup.py 2006-05-02 04:35:28 UTC (rev 39) +++ pyplusplus_dev/setup.py 2006-05-02 04:52:52 UTC (rev 40) @@ -16,7 +16,7 @@ pygccxml_available = False -def modifyPythonPath(): +def add_pygccxml_to_PYTHONPATH(): """Update PYTHONPATH so that is refers to pygccxml_dev. The updated path is required for generating the documentation when @@ -36,25 +36,28 @@ print "Setting PYTHONPATH to", os.environ["PYTHONPATH"] -def generate_doc(): +def generate_doc(): """Generate the epydoc reference manual. """ if not pygccxml_available: print "Please install pygccxml before generating the docs." sys.exit() - - print "Generating epydoc files..." - options = [ '--output="%s"'%os.path.join('docs', 'apidocs'), - '--docformat=epytext', - '--url=http://www.language-binding.net', - '--name=pyplusplus', -# '--verbose', - 'pyplusplus'] - cmd_line = "epydoc " + ' '.join( options ) - modifyPythonPath() - print cmd_line - os.system(cmd_line) - + + add_pygccxml_to_PYTHONPATH() + + from epydoc.docbuilder import build_doc_index + from epydoc.docwriter.html import HTMLWriter + + print "Generating epydoc files..." + + docindex = build_doc_index(['pyplusplus', 'pygccxml']) + html_writer = HTMLWriter( docindex + , prj_name='pyplusplus' + , prj_url='http://www.language-binding.net' + , include_sourcecode=True ) + + html_writer.write( os.path.join('docs', 'apidocs') ) + class doc_cmd(Command): """This is a new distutils command 'doc' to build the epydoc manual. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:35:35
|
Revision: 39 Author: roman_yakovenko Date: 2006-05-01 21:35:28 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=39&view=rev Log Message: ----------- fixing bug in test Modified Paths: -------------- pyplusplus_dev/examples/pyboost_dev/unittests/date_time/unittests/gregorian_tester.py Modified: pyplusplus_dev/examples/pyboost_dev/unittests/date_time/unittests/gregorian_tester.py =================================================================== --- pyplusplus_dev/examples/pyboost_dev/unittests/date_time/unittests/gregorian_tester.py 2006-05-02 04:33:54 UTC (rev 38) +++ pyplusplus_dev/examples/pyboost_dev/unittests/date_time/unittests/gregorian_tester.py 2006-05-02 04:35:28 UTC (rev 39) @@ -295,7 +295,7 @@ self.failUnless( gregorian.months(15) == m1 * 3) m1 *= 3 self.failUnless( gregorian.months(15) == m1) - self.failUnless( gregorian.months(12) == 4 * m2) + self.failUnless( gregorian.months(12) == m2 * 4) self.failUnless( gregorian.months(3) == m3 / 3) m3 /= 3 self.failUnless( gregorian.months(3) == m3) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:34:12
|
Revision: 38 Author: roman_yakovenko Date: 2006-05-01 21:33:54 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=38&view=rev Log Message: ----------- Updating date_time package to new project structure Modified Paths: -------------- pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/include/date_time.pypp.xml pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/sconstruct pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/settings.py Property Changed: ---------------- pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/generated/ Property changes on: pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/generated ___________________________________________________________________ Name: svn:ignore - simple_format.pypp.cpp simple_format.pypp.hpp simple_wformat.pypp.cpp simple_wformat.pypp.hpp time_duration.pypp.cpp time_duration.pypp.hpp time_duration_impl.pypp.cpp time_duration_impl.pypp.hpp time_label_invalid.pypp.cpp time_label_invalid.pypp.hpp time_period.pypp.cpp time_period.pypp.hpp time_zone_base.pypp.cpp time_zone_base.pypp.hpp time_zone_names.pypp.cpp time_zone_names.pypp.hpp tz_database.pypp.cpp tz_database.pypp.hpp us_dst.pypp.cpp us_dst.pypp.hpp weeks.pypp.cpp weeks.pypp.hpp year_month_day.pypp.cpp year_month_day.pypp.hpp years.pypp.cpp years.pypp.hpp __array_1.pypp.hpp __impl_details_33.pypp.cpp __impl_details_33.pypp.hpp _date_time_.main.cpp _date_time__enumerations.pypp.cpp _date_time__enumerations.pypp.hpp _date_time__free_functions.pypp.cpp _date_time__free_functions.pypp.hpp ambiguous_result.pypp.cpp ambiguous_result.pypp.hpp bad_adjustment.pypp.cpp bad_adjustment.pypp.hpp bad_day_of_month.pypp.cpp bad_day_of_month.pypp.hpp bad_day_of_year.pypp.cpp bad_day_of_year.pypp.hpp bad_field_count.pypp.cpp bad_field_count.pypp.hpp bad_month.pypp.cpp bad_month.pypp.hpp bad_offset.pypp.cpp bad_offset.pypp.hpp bad_weekday.pypp.cpp bad_weekday.pypp.hpp bad_year.pypp.cpp bad_year.pypp.hpp base_time_pyplusplus.pypp.cpp base_time_pyplusplus.pypp.hpp counted_time_system_pyplusplus.pypp.cpp counted_time_system_pyplusplus.pypp.hpp custom_time_zone.pypp.cpp custom_time_zone.pypp.hpp data_not_accessible.pypp.cpp data_not_accessible.pypp.hpp date.pypp.cpp date.pypp.hpp date_duration.pypp.cpp date_duration.pypp.hpp date_period.pypp.cpp date_period.pypp.hpp date_pyplusplus.pypp.cpp date_pyplusplus.pypp.hpp date_time_wrapper.hpp day_clock.pypp.cpp day_clock.pypp.hpp day_of_year_type.pypp.cpp day_of_year_type.pypp.hpp dst_adjustment_offsets.pypp.cpp dst_adjustment_offsets.pypp.hpp dst_calc_rule.pypp.cpp dst_calc_rule.pypp.hpp dst_calculator.pypp.cpp dst_calculator.pypp.hpp dst_not_valid.pypp.cpp dst_not_valid.pypp.hpp first_kday_after.pypp.cpp first_kday_after.pypp.hpp first_kday_before.pypp.cpp first_kday_before.pypp.hpp first_kday_of_month.pypp.cpp first_kday_of_month.pypp.hpp first_last_dst_rule.pypp.cpp first_last_dst_rule.pypp.hpp first_last_rule_spec.pypp.cpp first_last_rule_spec.pypp.hpp greg_day.pypp.cpp greg_day.pypp.hpp greg_day_rep.pypp.cpp greg_day_rep.pypp.hpp greg_month.pypp.cpp greg_month.pypp.hpp greg_month_rep.pypp.cpp greg_month_rep.pypp.hpp greg_weekday.pypp.cpp greg_weekday.pypp.hpp greg_weekday_rep.pypp.cpp greg_weekday_rep.pypp.hpp greg_year.pypp.cpp greg_year.pypp.hpp greg_year_rep.pypp.cpp greg_year_rep.pypp.hpp gregorian_calendar.pypp.cpp gregorian_calendar.pypp.hpp gregorian_calendar_base_pyplusplus.pypp.cpp gregorian_calendar_base_pyplusplus.pypp.hpp gregorian_year_based_generator.pypp.cpp gregorian_year_based_generator.pypp.hpp hours.pypp.cpp hours.pypp.hpp int_adapter_int.pypp.cpp int_adapter_int.pypp.hpp int_adapter_long.pypp.cpp int_adapter_long.pypp.hpp int_adapter_long_long_int.pypp.cpp int_adapter_long_long_int.pypp.hpp int_adapter_ulong.pypp.cpp int_adapter_ulong.pypp.hpp iso_extended_format.pypp.cpp iso_extended_format.pypp.hpp iso_extended_wformat.pypp.cpp iso_extended_wformat.pypp.hpp iso_format.pypp.cpp iso_format.pypp.hpp iso_format_base.pypp.cpp iso_format_base.pypp.hpp iso_wformat.pypp.cpp iso_wformat.pypp.hpp iso_wformat_base.pypp.cpp iso_wformat_base.pypp.hpp last_kday_of_month.pypp.cpp last_kday_of_month.pypp.hpp last_last_dst_rule.pypp.cpp last_last_dst_rule.pypp.hpp last_last_rule_spec.pypp.cpp last_last_rule_spec.pypp.hpp local_date_time.pypp.cpp local_date_time.pypp.hpp local_microsec_clock.pypp.cpp local_microsec_clock.pypp.hpp local_sec_clock.pypp.cpp local_sec_clock.pypp.hpp local_time_period.pypp.cpp local_time_period.pypp.hpp microsec_clock.pypp.cpp microsec_clock.pypp.hpp microseconds.pypp.cpp microseconds.pypp.hpp milliseconds.pypp.cpp milliseconds.pypp.hpp minutes.pypp.cpp minutes.pypp.hpp month_functor_pyplusplus.pypp.cpp month_functor_pyplusplus.pypp.hpp months.pypp.cpp months.pypp.hpp no_dst.pypp.cpp no_dst.pypp.hpp nth_kday_dst_rule.pypp.cpp nth_kday_dst_rule.pypp.hpp nth_kday_of_month.pypp.cpp nth_kday_of_month.pypp.hpp nth_kday_rule_spec.pypp.cpp nth_kday_rule_spec.pypp.hpp nth_last_dst_rule.pypp.cpp nth_last_dst_rule.pypp.hpp nth_last_rule_spec.pypp.cpp nth_last_rule_spec.pypp.hpp partial_date.pypp.cpp partial_date.pypp.hpp partial_date_dst_rule.pypp.cpp partial_date_dst_rule.pypp.hpp partial_date_rule_spec.pypp.cpp partial_date_rule_spec.pypp.hpp posix_time_zone.pypp.cpp posix_time_zone.pypp.hpp profile.stat ptime.pypp.cpp ptime.pypp.hpp second_clock.pypp.cpp second_clock.pypp.hpp seconds.pypp.cpp seconds.pypp.hpp partial_date.pypp.cpp partial_date.pypp.hpp partial_date_dst_rule.pypp.cpp partial_date_dst_rule.pypp.hpp partial_date_rule_spec.pypp.cpp partial_date_rule_spec.pypp.hpp posix_time_zone.pypp.cpp posix_time_zone.pypp.hpp profile.stat ptime.pypp.cpp ptime.pypp.hpp second_clock.pypp.cpp second_clock.pypp.hpp seconds.pypp.cpp seconds.pypp.hpp + simple_format.pypp.cpp simple_format.pypp.hpp simple_wformat.pypp.cpp simple_wformat.pypp.hpp time_duration.pypp.cpp time_duration.pypp.hpp time_duration_impl.pypp.cpp time_duration_impl.pypp.hpp time_label_invalid.pypp.cpp time_label_invalid.pypp.hpp time_period.pypp.cpp time_period.pypp.hpp time_zone_base.pypp.cpp time_zone_base.pypp.hpp time_zone_names.pypp.cpp time_zone_names.pypp.hpp tz_database.pypp.cpp tz_database.pypp.hpp us_dst.pypp.cpp us_dst.pypp.hpp weeks.pypp.cpp weeks.pypp.hpp year_month_day.pypp.cpp year_month_day.pypp.hpp years.pypp.cpp years.pypp.hpp __array_1.pypp.hpp __impl_details_33.pypp.cpp __impl_details_33.pypp.hpp _date_time_.main.cpp _date_time__enumerations.pypp.cpp _date_time__enumerations.pypp.hpp _date_time__free_functions.pypp.cpp _date_time__free_functions.pypp.hpp ambiguous_result.pypp.cpp ambiguous_result.pypp.hpp bad_adjustment.pypp.cpp bad_adjustment.pypp.hpp bad_day_of_month.pypp.cpp bad_day_of_month.pypp.hpp bad_day_of_year.pypp.cpp bad_day_of_year.pypp.hpp bad_field_count.pypp.cpp bad_field_count.pypp.hpp bad_month.pypp.cpp bad_month.pypp.hpp bad_offset.pypp.cpp bad_offset.pypp.hpp bad_weekday.pypp.cpp bad_weekday.pypp.hpp bad_year.pypp.cpp bad_year.pypp.hpp base_time_pyplusplus.pypp.cpp base_time_pyplusplus.pypp.hpp counted_time_system_pyplusplus.pypp.cpp counted_time_system_pyplusplus.pypp.hpp custom_time_zone.pypp.cpp custom_time_zone.pypp.hpp data_not_accessible.pypp.cpp data_not_accessible.pypp.hpp date.pypp.cpp date.pypp.hpp date_duration.pypp.cpp date_duration.pypp.hpp date_period.pypp.cpp date_period.pypp.hpp date_pyplusplus.pypp.cpp date_pyplusplus.pypp.hpp date_time_wrapper.hpp day_clock.pypp.cpp day_clock.pypp.hpp day_of_year_type.pypp.cpp day_of_year_type.pypp.hpp dst_adjustment_offsets.pypp.cpp dst_adjustment_offsets.pypp.hpp dst_calc_rule.pypp.cpp dst_calc_rule.pypp.hpp dst_calculator.pypp.cpp dst_calculator.pypp.hpp dst_not_valid.pypp.cpp dst_not_valid.pypp.hpp first_kday_after.pypp.cpp first_kday_after.pypp.hpp first_kday_before.pypp.cpp first_kday_before.pypp.hpp first_kday_of_month.pypp.cpp first_kday_of_month.pypp.hpp first_last_dst_rule.pypp.cpp first_last_dst_rule.pypp.hpp first_last_rule_spec.pypp.cpp first_last_rule_spec.pypp.hpp greg_day.pypp.cpp greg_day.pypp.hpp greg_day_rep.pypp.cpp greg_day_rep.pypp.hpp greg_month.pypp.cpp greg_month.pypp.hpp greg_month_rep.pypp.cpp greg_month_rep.pypp.hpp greg_weekday.pypp.cpp greg_weekday.pypp.hpp greg_weekday_rep.pypp.cpp greg_weekday_rep.pypp.hpp greg_year.pypp.cpp greg_year.pypp.hpp greg_year_rep.pypp.cpp greg_year_rep.pypp.hpp gregorian_calendar.pypp.cpp gregorian_calendar.pypp.hpp gregorian_calendar_base_pyplusplus.pypp.cpp gregorian_calendar_base_pyplusplus.pypp.hpp gregorian_year_based_generator.pypp.cpp gregorian_year_based_generator.pypp.hpp hours.pypp.cpp hours.pypp.hpp int_adapter_int.pypp.cpp int_adapter_int.pypp.hpp int_adapter_long.pypp.cpp int_adapter_long.pypp.hpp int_adapter_long_long_int.pypp.cpp int_adapter_long_long_int.pypp.hpp int_adapter_ulong.pypp.cpp int_adapter_ulong.pypp.hpp iso_extended_format.pypp.cpp iso_extended_format.pypp.hpp iso_extended_wformat.pypp.cpp iso_extended_wformat.pypp.hpp iso_format.pypp.cpp iso_format.pypp.hpp iso_format_base.pypp.cpp iso_format_base.pypp.hpp iso_wformat.pypp.cpp iso_wformat.pypp.hpp iso_wformat_base.pypp.cpp iso_wformat_base.pypp.hpp last_kday_of_month.pypp.cpp last_kday_of_month.pypp.hpp last_last_dst_rule.pypp.cpp last_last_dst_rule.pypp.hpp last_last_rule_spec.pypp.cpp last_last_rule_spec.pypp.hpp local_date_time.pypp.cpp local_date_time.pypp.hpp local_microsec_clock.pypp.cpp local_microsec_clock.pypp.hpp local_sec_clock.pypp.cpp local_sec_clock.pypp.hpp local_time_period.pypp.cpp local_time_period.pypp.hpp microsec_clock.pypp.cpp microsec_clock.pypp.hpp microseconds.pypp.cpp microseconds.pypp.hpp milliseconds.pypp.cpp milliseconds.pypp.hpp minutes.pypp.cpp minutes.pypp.hpp month_functor_pyplusplus.pypp.cpp month_functor_pyplusplus.pypp.hpp months.pypp.cpp months.pypp.hpp no_dst.pypp.cpp no_dst.pypp.hpp nth_kday_dst_rule.pypp.cpp nth_kday_dst_rule.pypp.hpp nth_kday_of_month.pypp.cpp nth_kday_of_month.pypp.hpp nth_kday_rule_spec.pypp.cpp nth_kday_rule_spec.pypp.hpp nth_last_dst_rule.pypp.cpp nth_last_dst_rule.pypp.hpp nth_last_rule_spec.pypp.cpp nth_last_rule_spec.pypp.hpp partial_date.pypp.cpp partial_date.pypp.hpp partial_date_dst_rule.pypp.cpp partial_date_dst_rule.pypp.hpp partial_date_rule_spec.pypp.cpp partial_date_rule_spec.pypp.hpp posix_time_zone.pypp.cpp posix_time_zone.pypp.hpp profile.stat ptime.pypp.cpp ptime.pypp.hpp second_clock.pypp.cpp second_clock.pypp.hpp seconds.pypp.cpp seconds.pypp.hpp partial_date.pypp.cpp partial_date.pypp.hpp partial_date_dst_rule.pypp.cpp partial_date_dst_rule.pypp.hpp partial_date_rule_spec.pypp.cpp partial_date_rule_spec.pypp.hpp posix_time_zone.pypp.cpp posix_time_zone.pypp.hpp profile.stat ptime.pypp.cpp ptime.pypp.hpp second_clock.pypp.cpp second_clock.pypp.hpp seconds.pypp.cpp seconds.pypp.hpp ymd_iso_extended_formatter.pypp.cpp ymd_iso_extended_wformatter.pypp.cpp ymd_iso_formatter.pypp.cpp ymd_iso_wformatter.pypp.cpp ymd_simple_formatter.pypp.cpp ymd_simple_wformatter.pypp.cpp Modified: pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/include/date_time.pypp.xml =================================================================== --- pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/include/date_time.pypp.xml 2006-05-02 04:31:00 UTC (rev 37) +++ pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/include/date_time.pypp.xml 2006-05-02 04:33:54 UTC (rev 38) @@ -2,8 +2,8 @@ <GCC_XML cvs_revision="1.111"> <Namespace id="_1" name="::" members="_3 _4 _5 _6 _7 _8 _9 _10 _11 _12 _13 _14 _15 _16 _17 _18 _19 _20 _21 _22 _23 _24 _25 _26 _27 _28 _29 _30 _31 _32 _33 _34 _35 _36 _37 _38 _39 _40 _41 _42 _43 _44 _45 _46 _47 _48 _49 _50 _51 _52 _53 _54 _55 _56 _57 _58 _59 _60 _61 _62 _63 _64 _65 _66 _67 _68 _69 _70 _71 _72 _73 _74 _75 _76 _77 _78 _79 _80 _81 _82 _83 _84 _85 _86 _87 _88 _89 _90 _91 _92 _93 _94 _95 _96 _97 _98 _99 _100 _101 _102 _103 _104 _105 _106 _107 _108 _109 _110 _111 _112 _113 _114 _115 _116 _117 _118 _119 _120 _121 _122 _123 _124 _125 _126 _127 _128 _129 _130 _131 _132 _133 _134 _135 _136 _137 _138 _139 _140 _141 _142 _143 _144 _145 _146 _147 _148 _149 _150 _151 _152 _153 _154 _155 _156 _157 _158 _159 _160 _161 _162 _163 _164 _165 _166 _167 _168 _169 _170 _171 _172 _173 _174 _175 _176 _177 _178 _179 _180 _181 _182 _183 _184 _185 _186 _187 _188 _189 _190 _191 _192 _193 _194 _195 _196 _197 _198 _199 _200 _201 _202 _203 _204 _205 _206 _207 _208 _209 _210 _211 _212 _213 _214 _215 _216 _217 _218 _219 _220 _221 _222 _223 _224 _225 _226 _227 _228 _229 _230 _231 _232 _233 _234 _235 _236 _237 _238 _239 _240 _241 _242 _243 _244 _245 _246 _247 _248 _249 _250 _251 _252 _253 _254 _255 _256 _257 _258 _259 _260 _261 _262 _263 _264 _265 _266 _267 _268 _269 _270 _271 _272 _273 _274 _275 _276 _277 _278 _279 _280 _281 _282 _283 _284 _285 _286 _287 _288 _289 _290 _291 _292 _293 _294 _295 _296 _297 _298 _299 _300 _301 _302 _303 _304 _305 _306 _307 _308 _309 _310 _311 _312 _313 _314 _315 _316 _317 _318 _319 _320 _321 _322 _323 _324 _325 _326 _327 _328 _329 _330 _331 _332 _333 _334 _335 _336 _337 _338 _339 _340 _341 _342 _343 _344 _345 _346 _347 _348 _349 _350 _351 _352 _353 _354 _355 _356 _357 _358 _359 _360 _361 _362 _363 _364 _365 _366 _367 _368 _369 _370 _371 _372 _373 _374 _375 _376 _377 _378 _379 _380 _381 _382 _383 _384 _385 _386 _387 _388 _389 _390 _391 _392 _393 _394 _395 _396 _397 _398 _399 _400 _401 _402 _403 _404 _405 _406 _407 _408 _409 _410 _411 _412 _413 _414 _415 _416 _417 _418 _419 _420 _421 _422 _423 _424 _425 _426 _427 _428 _429 _430 _431 _432 _433 _434 _435 _436 _437 _438 _439 _440 _441 _442 _443 _444 _445 _446 _447 _448 _449 _450 _451 _452 _453 _454 _455 _456 _457 _458 _459 _460 _461 _462 _463 _464 _465 _466 _467 _468 _469 _470 _471 _472 _473 _474 _475 _476 _477 _478 _479 _480 _482 _483 _484 _485 _486 _487 _488 _489 _490 _491 _492 _493 _494 _495 _496 _497 _498 _499 _501 _502 _503 _504 _505 _506 _508 _509 _510 _511 _512 _513 _514 _515 _516 _517 _518 _519 _520 _521 _522 _523 _524 _525 _526 _527 _528 _529 _530 _531 _532 _533 _534 _535 _536 _537 _538 _539 _540 _541 _542 _543 _544 _545 _546 _547 _548 _549 _550 _551 _552 _553 _554 _555 _556 _557 _558 _559 _560 _561 _562 _563 _564 _565 _566 _567 _568 _569 _570 _571 _572 _573 _574 _575 _576 _577 _578 _579 _580 _581 _582 _583 _584 _585 _586 _587 _588 _589 _590 _591 _592 _593 _594 _595 _596 _597 _598 _599 _600 _601 _602 _603 _604 _605 _606 _607 _608 _609 _610 _611 _612 _613 _614 _615 _616 _617 _618 _619 _621 _622 _623 _624 _625 _626 _627 _628 _629 _630 _631 _632 _633 _634 _635 _636 _638 _639 _640 _641 _642 _643 _644 _645 _646 _647 _648 _649 _650 _651 _652 _653 _654 _655 _656 _657 _658 _659 _660 _661 _662 _663 _664 _665 _666 _667 _668 _669 _670 _671 _672 _673 _674 _675 _676 _677 _678 _679 _680 _681 _682 _683 _684 _685 _686 _687 _688 _689 _690 _691 _692 _693 _694 _695 _696 _697 _698 _699 _700 _701 _702 _703 _704 _705 _706 _707 _708 _709 _710 _711 _712 _713 _714 _715 _716 _717 _718 _719 _720 _721 _722 _723 _724 _725 _726 _727 _728 _729 _730 _731 _732 _733 _734 _735 _736 _737 _738 _739 _740 _741 _742 _743 _744 _745 _746 _747 _748 _749 _750 _751 _752 _753 _754 _755 _756 _757 _758 _759 _760 _761 _762 _763 _764 _766 _767 _768 _769 _770 _771 _772 _773 _774 _775 _776 _777 _778 _779 _780 _781 _782 _783 _784 _785 _786 _787 _788 _789 _790 _791 _792 _793 _794 _795 _796 _797 _798 _799 _800 _801 _802 _803 _804 _805 _806 _807 _808 _809 _810 _811 _812 _813 _814 _815 _816 _817 _819 _820 _821 _823 _824 _825 _826 _827 _828 _829 _830 _831 _832 _833 _834 _835 _836 _837 _838 _839 _840 _841 _842 _843 _844 _845 _846 _847 _848 _849 _850 _851 _852 _853 _854 _855 _856 _857 _858 _859 _860 _861 _862 _863 _864 _865 _866 _867 _868 _869 _870 _871 _872 _873 _874 _875 _876 _877 _878 _879 _880 _881 _882 _883 _884 _885 _886 _887 _888 _889 _890 _891 _892 _893 _894 _895 _896 _897 _898 _899 _900 _901 _902 _903 _904 _905 _906 _907 _908 _909 _910 _911 _912 _913 _914 _915 _916 _917 _918 _919 _920 _921 _922 _923 _924 _925 _926 _927 _928 _929 _930 _931 _932 _933 _934 _935 _936 _937 _938 _939 _940 _941 _942 _943 _944 _945 _946 _947 _948 _949 _950 _951 _952 _953 _954 _955 _956 _957 _958 _959 _960 _961 _962 _963 _964 _965 _966 _967 _968 _969 _970 _971 _972 _973 _974 _975 _976 _977 _978 _979 _980 _981 _982 _983 _984 _985 _986 _987 _988 _989 _990 _991 _992 _993 _994 _995 _996 _997 _998 _999 _1000 _1001 _1002 _1003 _1005 _1006 _1007 _1008 _1009 _1010 _1011 _1012 _1013 _1014 _1015 _1016 _1017 _1018 _1019 _1020 _1021 _1022 _1023 _1024 _1025 _1026 _1027 _1028 _1029 _1030 _1031 _1032 _1033 _1034 _1035 _1036 _1037 _1038 _1039 _1040 _1041 _1042 _1043 _1044 _1045 _1046 _1047 _1048 _1049 _1050 _1051 _1052 _1053 _1054 _1055 _1056 _1057 _1058 _1059 _1060 _1061 _1062 _1063 _1064 _1065 _1066 _1067 _1068 _1069 _1070 _1071 _1072 _1073 _1074 _1075 _1076 _1077 _1078 _1079 _1080 _1081 _1082 _1083 _1084 _1085 _1086 _1087 _1088 _1089 _1090 _1091 _1092 _1093 _1094 _1095 _1096 _1097 _1098 _1099 _1100 _1101 _1102 _1103 _1104 _1106 _1108 _1110 _1111 _1112 _1113 _1114 _1115 _1116 _1117 _1118 _1119 _1120 _1121 _1122 _1123 _1124 _1125 _1126 _1127 _1128 _1129 _1130 _1131 _1132 _1133 _1135 _1134 _1137 _1139 _1141 _1143 _1144 _1145 _1146 _1147 _1148 _1149 _1150 _1151 _1152 _1153 _1155 _1156 _1157 _1158 _1160 _1161 _1163 _1164 _1166 _1167 _1169 _1171 _1173 _1175 _1177 _1179 _1181 _1183 _1185 _1186 _1187 _1188 _1189 _1190 _1191 _1105 _1107 _765 _1192 _1194 _1195 _1193 _1196 _1197 _1198 _1199 _1200 _1201 _1202 _1203 _1204 _1205 _1206 _1207 _1208 _1209 _1210 _1211 _1212 _1213 _1214 _1215 _1216 _1217 _1218 _1219 _1220 _1221 _1222 _1223 _1224 _1225 _1226 _1227 _1228 _1229 _1230 _1231 _1232 _1233 _1234 _1235 _1236 _1237 _1238 _1239 _1241 _1242 _1243 _1244 _1245 _1247 _1249 _1250 _1251 _1252 _1253 _1255 _1256 _1257 _1258 _1260 _1261 _1262 _1263 _1264 _1265 _1266 _1267 _1268 _1269 _1270 _1271 _1272 _1273 _1274 _1275 _1276 _1277 _1278 _1279 _1280 _1281 _1282 _1283 _1284 _1285 _1286 _1287 _1288 _1289 _1290 _1291 _1292 _1293 _1294 _1295 _1296 _1297 _1298 _1299 _1300 _1301 _1302 _1303 _1304 _1305 _1306 _1307 _1308 _1309 _1310 _1311 _1312 _1313 _1314 _1315 _1316 _1317 _1318 _1319 _1320 _1321 _1322 _1323 _1324 _1325 _1326 _1327 _1328 _1329 _1330 _1331 _1332 _1333 _1334 _1335 _1336 _1337 _1338 _1339 _1340 _1341 _1342 _1343 _1344 _1345 _1346 _1347 _1348 _1349 _1350 _1351 _1352 _1353 _1354 _1355 _1356 _1357 _1358 _1359 _1360 _1361 _1362 _1363 _1364 _1365 _1366 _1367 _1368 _1369 _1370 _1371 _1372 _1373 _1374 _1375 _1376 _1377 _1378 _1379 _1380 _1381 _1382 _1383 _1384 _1385 _1386 _1387 _1388 _1389 _1390 _1391 _1392 _1393 _1394 _1395 _1396 _1397 _1398 _1399 _1400 _1401 _1402 _1403 _1404 _1405 _1406 _1407 _1408 _1409 _1410 _1411 _1412 _1413 _1414 _1415 _1416 _1417 _1418 _1419 _1420 _1421 _1422 _1423 _1424 _1425 _1426 _1427 _1428 _1430 _1431 _1432 _1433 _1434 _1435 _1436 _1437 _1438 _1439 _1440 _1441 _1442 _1443 _1444 _1445 _1446 _1447 _1448 _1449 _1450 _1451 _1452 _1453 _1454 _1455 _1456 _1457 _1458 _1459 _1460 _1461 _1462 _1463 _1464 _1465 _1466 _1467 _1468 _1469 _1470 _1471 _1472 _1473 _1474 _1475 _1476 _1477 _1478 _1479 _1480 _1481 _1482 _1483 _1484 _1485 _1486 _1487 _1488 _1489 _1491 _1490 _1492 _1493 _818 _1494 _1495 _1496 _1497 _1499 _1498 _1501 _1502 _1503 _1504 _1505 _1506 _1507 _1508 _1509 _1510 _1512 _1513 _1514 _1515 _1516 _1517 _1518 _1519 _1520 _1521 _1522 _1523 _1525 _1524 _1526 _1527 _1528 _1529 _1530 _1531 _1532 _1533 _1534 _1535 _1536 _1537 _1538 _1539 _1540 _1541 _1542 _1543 _1544 _1545 _1546 _1547 _1548 _1549 _1550 _1551 _1552 _1553 _1554 _1555 _1556 _1557 _1558 _1559 _1560 _1562 _1563 _1564 _1565 _1566 _1567 _1568 _1569 _1570 _1571 _1573 _1574 _1575 _1576 _1577 _1578 _1579 _1580 _1581 _1582 _1583 _1584 _1585 _1586 _1587 _1588 _1589 _1590 _1591 _1592 _1593 _1594 _1561 _1595 _1596 _1597 _1598 _1599 _1600 _1601 _1602 _1603 _1604 _1605 _1606 _1607 _1608 _1609 _1610 _1611 _1612 _1613 _1614 _1615 _1616 _1617 _1618 _1619 _1620 _1621 _1622 _1623 _1624 _1625 _1626 _1627 _1628 _1629 _1630 _1631 _1632 _1633 _1634 _1635 _1636 _1637 _1638 _1639 _1640 _1641 _1642 _1643 _1644 _1645 _1646 _1647 _1648 _1649 _1650 _1651 _1652 _1653 _1654 _1655 _1656 _1657 _1658 _1659 _1660 _1661 _1662 _1663 _1664 _1665 _1666 _1667 _1668 _1669 _1670 _1671 _1672 _1673 _1674 _1675 _1676 _1677 _1678 _1679 _1680 _1681 _1682 _1683 _1684 _1685 _1686 _1687 _1688 _1689 _1690 _1691 _1692 _1693 _1694 _1695 _1696 _1697 _1698 _1699 _1700 _1701 _1702 _1703 _1704 _1705 _1706 _1707 _1708 _1709 _1710 _1711 _1712 _1713 _1714 _1715 _1716 _1717 _1718 _1719 _1720 _1721 _1722 _1723 _1724 _1725 _1726 _1727 _1728 _1729 _1730 _1731 _1732 _1733 _1734 _1735 _1736 _1737 _1738 _1739 _1740 _1741 _1742 _1743 _1744 _1745 _1746 _1747 _1748 _1749 _1750 _1751 _1752 _1753 _1754 _1755 _1756 _1757 _1758 _1759 _1760 _1761 _1762 _1763 _1764 _1765 _1766 _1767 _1768 _1769 _1770 _1771 _1772 _1773 _1774 _1775 _1776 _1777 _1778 _1779 _1780 _1781 _1782 _1783 _1784 _1785 _1786 _1787 _1788 _1789 _1790 _1791 _1792 _1793 _1794 _1795 _1796 _1797 _1798 _1799 _1800 _1801 _1802 _1803 _1804 _1805 _1806 _1807 _1808 _1809 _1810 _1811 _1812 _1813 _1814 _1815 _1816 _1817 _1818 _1819 _1820 _1821 _1822 _1823 _1824 _1825 _1826 _1827 _1828 _1829 _1830 _1831 _1832 _1833 _1834 _1835 _1836 _1837 _1838 _1839 _1840 _1841 _1842 _1843 _1844 " mangled="_Z2::"/> <Namespace id="_2" name="std" context="_1" members="_1846 _1847 _1848 _1849 _1850 _1851 _1852 _1853 _1854 _1855 _1856 _1857 _1858 _1859 _1860 _1861 _1862 _1863 _1864 _1865 _1866 _1867 _1868 _1869 _1870 _1871 _1872 _1873 _1874 _1875 _1876 _1877 _1878 _1879 _1880 _1881 _1882 _1883 _1884 _1885 _1886 _1887 _1888 _1889 _1890 _1891 _1892 _1893 _1894 _1895 _1900 _1901 _1906 _1907 _1920 _1921 _1926 _1927 _1932 _1933 _1934 _1935 _1936 _1937 _1938 _1939 _1940 _1941 _1942 _1956 _1957 _1958 _1959 _1960 _1961 _1962 _1963 _1964 _1965 _1968 _1973 _1974 _1975 _1976 _1981 _1982 _1983 _1984 _1987 _1988 _1989 _1990 _1991 _1992 _1993 _1994 _1995 _1996 _1997 _2006 _2007 _2008 _2039 _2048 _2049 _2050 _2051 _2052 _2053 _2054 _2055 _2056 _2057 _2058 _2059 _2060 _2061 _2062 _2063 _2064 _2065 _2066 _2067 _2068 _2069 _2070 _2071 _2072 _2073 _2074 _2075 _2076 _2077 _2078 _2079 _2080 _2081 _2082 _2083 _2084 _2085 _2086 _2087 _2088 _2089 _2090 _2091 _2092 _2093 _2094 _2100 _2101 _2142 _2143 _2144 _2162 _2163 _2203 _2205 _2206 _2207 _2268 _2281 _2290 _2307 _2308 _2313 _2315 _2316 _2317 _2324 _2325 _2326 _2449 _2450 _2451 _2452 _2453 _2454 _2455 _2456 _2457 _2459 _2461 _2463 _2465 _2467 _2469 _2471 _2473 _2475 _2477 _2479 _2481 _2483 _2485 _2487 _2489 _2491 _2493 _2495 _2497 _2499 _2501 _2503 _2505 _2507 _2509 _2510 _2515 _2516 _2517 _2518 _2519 _2520 _2521 _2522 _2523 _2524 _2525 _2526 _2527 _2528 _2530 _2531 _2532 _2533 _2534 _2535 _2536 _2537 _2538 _2540 _2542 _2561 _2562 _2563 _2564 _2565 _2566 _2567 _2568 _2569 _2632 _2633 _2634 _2635 _2636 _2637 _2638 _2647 _2648 _2649 " mangled="_Z3std"/> - <Function id="_3" name="_GLOBAL__D__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hpppWdnWb" returns="_1154" context="_1" location="f0:131" file="f0" line="131" endline="131"/> - <Function id="_4" name="_GLOBAL__I__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hpppWdnWb" returns="_1154" context="_1" location="f0:131" file="f0" line="131" endline="131"/> + <Function id="_3" name="_GLOBAL__D__home_roman_pygccxml_sources_sources_pyplusplus_dev_examples_pyboost_dev_pyboost_date_time_include_date_time.pypp.hppmhWTva" returns="_1154" context="_1" location="f0:131" file="f0" line="131" endline="131"/> + <Function id="_4" name="_GLOBAL__I__home_roman_pygccxml_sources_sources_pyplusplus_dev_examples_pyboost_dev_pyboost_date_time_include_date_time.pypp.hppmhWTva" returns="_1154" context="_1" location="f0:131" file="f0" line="131" endline="131"/> <Variable id="_5" name="_ZGVN5boost9date_time10date_facetINS_9gregorian4dateEcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE2idE" type="_1248" context="_1" location="f1:372" file="f1" line="372" artificial="1"/> <Function id="_6" name="__static_initialization_and_destruction_0" returns="_1154" context="_1" mangled="_Z41__static_initialization_and_destruction_0ii" location="f0:131" file="f0" line="131" endline="76"> <Argument name="__initialize_p" type="_500" location="f0:131" file="f0" line="131"/> @@ -34451,8 +34451,8 @@ <File id="f113" name="/usr/include/c++/4.0.3/cstdlib"/> <File id="f114" name="/usr/include/c++/4.0.3/bits/stl_pair.h"/> <File id="f115" name="<internal>"/> - <File id="f116" name="/home/roman/pygccxml_sources/source/pyplusplus/examples/py_date_time/include/date_time.pypp.hpp"/> - <File id="f117" name="/home/roman/pygccxml_sources/source/pyplusplus/examples/py_date_time/include/date_time_wrapper.hpp"/> + <File id="f116" name="/home/roman/pygccxml_sources/sources/pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/include/date_time.pypp.hpp"/> + <File id="f117" name="/home/roman/pygccxml_sources/sources/pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/include/date_time_wrapper.hpp"/> <File id="f118" name="/home/roman/boost_cvs/boost/mpl/aux_/integral_wrapper.hpp"/> <File id="f119" name="/home/roman/boost_cvs/boost/mpl/arg_fwd.hpp"/> <File id="f120" name="/home/roman/boost_cvs/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp"/> Modified: pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/sconstruct =================================================================== --- pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/sconstruct 2006-05-02 04:31:00 UTC (rev 37) +++ pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/sconstruct 2006-05-02 04:33:54 UTC (rev 38) @@ -6,22 +6,11 @@ import os import sys -from environment import settings +import settings -def get_shlibsuffix(): - if sys.platform == 'win32': - return '.pyd' - else: - return '.so' - def get_ccflags(): if sys.platform == 'win32': - return [ '/MD' - , '/EHsc' - , '/GR' - , '/Zc:wchar_t' - , '/Zc:forScope' - , '/GR' ] \ + return settings.scons.ccflags \ + map( lambda ds: '/D%s' % ds, settings.defined_symbols ) else: return map( lambda ds: '-D' + ds, settings.defined_symbols ) @@ -32,23 +21,22 @@ def get_libs(): if sys.platform == 'win32': - return ['boost_python' ] #python24.lib + return ['boost_python' ] else: return ['boost_python', 'libboost_date_time-gcc-1_34'] def get_target(): - return os.path.join( settings.unittests_dir - , settings.module_name + get_shlibsuffix() ) + return os.path.join( settings.generated_files_dir + , settings.module_name + settings.scons.suffix ) SharedLibrary( target=get_target() - , source=get_py_date_time_files() - , LIBS=get_libs() - , LIBPATH=[ settings.boost_libs_path, settings.python_libs_path ] - , CPPPATH=[ settings.boost_path - , settings.working_dir - , settings.python_include_path - , settings.generated_files_dir ] - , CCFLAGS=get_ccflags() - , SHLIBPREFIX='' - , SHLIBSUFFIX=get_shlibsuffix() -) + , source=get_py_date_time_files() + , LIBS=get_libs() + , LIBPATH=[ settings.boost.libs, settings.python.libs ] + , CPPPATH=[ settings.boost.include + , settings.working_dir + , settings.python.include + , settings.generated_files_dir ] + , CCFLAGS=get_ccflags() + , SHLIBPREFIX='' + , SHLIBSUFFIX=settings.scons.suffix ) Modified: pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/settings.py =================================================================== --- pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/settings.py 2006-05-02 04:31:00 UTC (rev 37) +++ pyplusplus_dev/examples/pyboost_dev/pyboost/date_time/settings.py 2006-05-02 04:33:54 UTC (rev 38) @@ -7,17 +7,17 @@ import os import sys -_script_dir = os.path.split( os.path.abspath( sys.argv[0] ) )[0] -environment_path = os.path.normpath( os.path.join( _script_dir, '..', '..', '..', '..' ) ) - +_script_dir = os.path.abspath( os.getcwd() ) +environment_path = os.path.realpath( os.path.join( _script_dir, '..', '..', '..', '..' ) ) sys.path.append( environment_path ) -from environment import boost, scons, gccxml +from environment import boost, scons, gccxml, python module_name = '_date_time_' working_dir = _script_dir generated_files_dir = os.path.join( _script_dir, 'generated' ) -unittests_dir = os.path.join( _script_dir, '..', '..', 'unittests', 'date_time' ) +unittests_dir = os.path.realpath( os.path.join( _script_dir, '..', '..', 'unittests', 'date_time' ) ) + date_time_pypp_include = os.path.join( _script_dir, 'include' ) undefined_symbols = [ '__MINGW32__' ] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:31:12
|
Revision: 37 Author: roman_yakovenko Date: 2006-05-01 21:31:00 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=37&view=rev Log Message: ----------- adding new tester for protected functions Modified Paths: -------------- pyplusplus_dev/unittests/test_all.py Added Paths: ----------- pyplusplus_dev/unittests/data/protected_to_be_exported.hpp pyplusplus_dev/unittests/protected_tester.py Added: pyplusplus_dev/unittests/data/protected_to_be_exported.hpp =================================================================== --- pyplusplus_dev/unittests/data/protected_to_be_exported.hpp (rev 0) +++ pyplusplus_dev/unittests/data/protected_to_be_exported.hpp 2006-05-02 04:31:00 UTC (rev 37) @@ -0,0 +1,34 @@ +// Copyright 2004 Roman Yakovenko. +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +#ifndef __protected_to_be_exported_hpp__ +#define __protected_to_be_exported_hpp__ + +namespace protected_{ + +struct protected_t{ +protected: + int get_1(){ return 1; } +}; + +struct protected_s_t{ +protected: + static int get_2(){ return 2; } +}; + + +struct protected_v_t{ +protected: + virtual int get_i(){ return 10; } +}; + +struct protected_v_derived_t : public protected_v_t{ +}; + +} + +#endif//__protected_to_be_exported_hpp__ + + Added: pyplusplus_dev/unittests/protected_tester.py =================================================================== --- pyplusplus_dev/unittests/protected_tester.py (rev 0) +++ pyplusplus_dev/unittests/protected_tester.py 2006-05-02 04:31:00 UTC (rev 37) @@ -0,0 +1,74 @@ +# Copyright 2004 Roman Yakovenko. +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +import os +import sys +import unittest +import fundamental_tester_base +from pygccxml import declarations + +class tester_t(fundamental_tester_base.fundamental_tester_base_t): + EXTENSION_NAME = 'protected' + + def __init__( self, *args ): + fundamental_tester_base.fundamental_tester_base_t.__init__( + self + , tester_t.EXTENSION_NAME + , *args ) + + def customize(self, mb ): + mb.classes().always_expose_using_scope = True + mb.calldefs().create_with_signature = True + + def create_protected_s_derived_no_override( self, module ): + class derived(module.protected_v_t): + def __init__( self ): + module.protected_v_t.__init__( self ) + return derived() + + def create_protected_s_derived( self, module ): + class derived(module.protected_v_t): + def __init__( self ): + module.protected_v_t.__init__( self ) + + def get_i(self): + return 20 + #todo: fix it + #return super( derived, self ).get_i() * 2 + + return derived() + + + def run_tests(self, module): + protected = module.protected_t() + self.failUnless( protected.get_1() == 1 ) + + protected_s = module.protected_s_t() + self.failUnless( protected_s.get_2() == 2 ) + self.failUnless( module.protected_s_t.get_2() == 2 ) + + protected_v = module.protected_v_t() + self.failUnless( protected_v.get_i() == 10 ) + + protected_v_no_override = self.create_protected_s_derived_no_override( module ) + self.failUnless( protected_v_no_override.get_i() == 10 ) + + protected_v_override = self.create_protected_s_derived( module ) + self.failUnless( protected_v_override.get_i() == 20 ) + + protected_v_d = module.protected_v_derived_t() + self.failUnless( protected_v_d.get_i() == 10 ) + + +def create_suite(): + suite = unittest.TestSuite() + suite.addTest( unittest.makeSuite(tester_t)) + return suite + +def run_suite(): + unittest.TextTestRunner(verbosity=2).run( create_suite() ) + +if __name__ == "__main__": + run_suite() \ No newline at end of file Modified: pyplusplus_dev/unittests/test_all.py =================================================================== --- pyplusplus_dev/unittests/test_all.py 2006-05-02 04:29:42 UTC (rev 36) +++ pyplusplus_dev/unittests/test_all.py 2006-05-02 04:31:00 UTC (rev 37) @@ -49,6 +49,7 @@ import pointer_as_arg_tester import factory_tester import private_assign_tester +import protected_tester def create_suite(times): testers = [ @@ -94,7 +95,8 @@ , optional_bug_tester , pointer_as_arg_tester , factory_tester - , private_assign_tester + , private_assign_tester + , protected_tester ] main_suite = unittest.TestSuite() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:29:49
|
Revision: 36 Author: roman_yakovenko Date: 2006-05-01 21:29:42 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=36&view=rev Log Message: ----------- Improving a little location-guess algorithm. Adding few compilation flags to msvc compiler Modified Paths: -------------- pyplusplus_dev/environment.py Modified: pyplusplus_dev/environment.py =================================================================== --- pyplusplus_dev/environment.py 2006-05-02 04:27:55 UTC (rev 35) +++ pyplusplus_dev/environment.py 2006-05-02 04:29:42 UTC (rev 36) @@ -26,7 +26,7 @@ if sys.platform == 'win32': scons.suffix = '.dll' - scons.ccflags = ['/MD', '/EHsc', '/GR' ] + scons.ccflags = ['/MD', '/EHsc', '/GR', '/Zc:wchar_t', '/Zc:forScope' ] boost.libs = 'd:/boost_cvs/bin' boost.include = 'd:/boost_cvs' python.libs = 'c:/python/libs' @@ -46,6 +46,10 @@ environment_path_helper.raise_error() except Exception, error: _my_path = os.path.abspath( os.path.split( sys.exc_traceback.tb_frame.f_code.co_filename )[0] ) + if not os.path.exists( os.path.join( _my_path, 'environment.py' ) ): + #try another guess + if sys.modules.has_key('environment'): + _my_path = os.path.split( sys.modules['environment'].__file__ )[0] try: import pygccxml This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:28:06
|
Revision: 35 Author: roman_yakovenko Date: 2006-05-01 21:27:55 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=35&view=rev Log Message: ----------- Fixing global_variable.py to use "dummy_type_t" from pygccxml Modified Paths: -------------- pyplusplus_dev/pyplusplus/code_creators/global_variable.py Modified: pyplusplus_dev/pyplusplus/code_creators/global_variable.py =================================================================== --- pyplusplus_dev/pyplusplus/code_creators/global_variable.py 2006-05-02 04:21:46 UTC (rev 34) +++ pyplusplus_dev/pyplusplus/code_creators/global_variable.py 2006-05-02 04:27:55 UTC (rev 35) @@ -90,7 +90,7 @@ , str( declarations.array_size( self.declaration.type ) ) ]) - return algorithm.dummy_type_t( decl_string ) + return declarations.dummy_type_t( decl_string ) wrapper_type = property( _get_wrapper_type ) def _get_wrapper_creator_type(self): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:21:53
|
Revision: 34 Author: roman_yakovenko Date: 2006-05-01 21:21:46 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=34&view=rev Log Message: ----------- adding references to dummy_type_t custom_matcher_t virtuality_type_matcher_t Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/__init__.py Modified: pygccxml_dev/pygccxml/declarations/__init__.py =================================================================== --- pygccxml_dev/pygccxml/declarations/__init__.py 2006-05-02 04:20:37 UTC (rev 33) +++ pygccxml_dev/pygccxml/declarations/__init__.py 2006-05-02 04:21:46 UTC (rev 34) @@ -22,6 +22,7 @@ from typedef import typedef_t from cpptypes import type_t +from cpptypes import dummy_type_t from cpptypes import unknown_t from cpptypes import fundamental_t from cpptypes import void_t @@ -147,7 +148,8 @@ from filters import regex_matcher_t from filters import access_type_matcher_t from filters import operator_matcher_t - +from filters import custom_matcher_t +from filters import virtuality_type_matcher_t from matcher import matcher from mdecl_wrapper import mdecl_wrapper_t This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:20:44
|
Revision: 33 Author: roman_yakovenko Date: 2006-05-01 21:20:37 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=33&view=rev Log Message: ----------- adding new type class "dummy_type_t". This class is very useful for code generation and not only. Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/cpptypes.py Modified: pygccxml_dev/pygccxml/declarations/cpptypes.py =================================================================== --- pygccxml_dev/pygccxml/declarations/cpptypes.py 2006-05-02 04:19:22 UTC (rev 32) +++ pygccxml_dev/pygccxml/declarations/cpptypes.py 2006-05-02 04:20:37 UTC (rev 33) @@ -51,6 +51,19 @@ #<Unimplemented id="_9482" tree_code="188" tree_code_name="template_type_parm" node="0xcc4d5b0"/> #In this case I will use this as type + +class dummy_type_t( type_t ): + #This class is very usefull for code generation + def __init__( self, decl_string ): + type_t.__init__( self ) + self._decl_string = decl_string + + def _create_decl_string(self): + return self._decl_string + + def _clone_impl( self ): + return dummy_type_t( self._decl_string ) + class unknown_t( type_t ): "type, that represents all C++ types, that could not be parsed by GCC-XML" def __init__( self ): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:19:30
|
Revision: 32 Author: roman_yakovenko Date: 2006-05-01 21:19:22 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=32&view=rev Log Message: ----------- improve readability of the code Modified Paths: -------------- pygccxml_dev/unittests/autoconfig.py Modified: pygccxml_dev/unittests/autoconfig.py =================================================================== --- pygccxml_dev/unittests/autoconfig.py 2006-05-02 04:18:31 UTC (rev 31) +++ pygccxml_dev/unittests/autoconfig.py 2006-05-02 04:19:22 UTC (rev 32) @@ -18,7 +18,8 @@ if sys.platform == 'win32': gccxml_path = 'c:/tools/gccxml/bin/gccxml.exe' else: - gccxml_path = '/home/roman/gccxml/bin/gccxml' + gccxml_path = '/home/roman/gccxml/bin/gccxml' + try: import pygccxml print 'unittests will run on INSTALLED version' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:18:40
|
Revision: 31 Author: roman_yakovenko Date: 2006-05-01 21:18:31 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=31&view=rev Log Message: ----------- adding new function: __nonzero__. The main purpose is to use mdecl_wrapper_t instance in "if" statements as is. An other change is attribute "_decl" becomes public. Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py Modified: pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py =================================================================== --- pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py 2006-05-02 04:15:28 UTC (rev 30) +++ pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py 2006-05-02 04:18:31 UTC (rev 31) @@ -34,18 +34,21 @@ @type decls: list of L{declaration wrappers<decl_wrapper_t>} """ object.__init__( self ) - self.__dict__['_decls'] = decls + self.__dict__['decls'] = decls + def __nonzero__( self ): + return bool( self.decls ) + def __len__( self ): """returns the number of declarations""" - return len( self._decls ) + return len( self.decls ) def __getitem__( self, index ): """provides access to declaration""" - return self._decls[index] + return self.decls[index] def __ensure_attribute( self, name ): - invalid_decls = filter( lambda d: not hasattr( d, name ), self._decls ) + invalid_decls = filter( lambda d: not hasattr( d, name ), self.decls ) if invalid_decls: raise RuntimeError( "Not all declarations have '%s' attribute." % name ) @@ -55,10 +58,10 @@ @param value: new value of attribute """ self.__ensure_attribute( name ) - for d in self._decls: + for d in self.decls: setattr( d, name, value ) def __getattr__( self, name ): """@param name: name of method """ - return call_redirector_t( name, self._decls ) \ No newline at end of file + return call_redirector_t( name, self.decls ) \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:15:42
|
Revision: 30 Author: roman_yakovenko Date: 2006-05-01 21:15:28 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=30&view=rev Log Message: ----------- From now it is possible to configure "multi-select" queries to not raise exception, if query returns empty. just pass allow_empty=True as a parameter to the functions Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/namespace.py pygccxml_dev/pygccxml/declarations/scopedef.py pygccxml_dev/unittests/namespace_matcher_tester.py Modified: pygccxml_dev/pygccxml/declarations/namespace.py =================================================================== --- pygccxml_dev/pygccxml/declarations/namespace.py 2006-05-02 04:10:19 UTC (rev 29) +++ pygccxml_dev/pygccxml/declarations/namespace.py 2006-05-02 04:15:28 UTC (rev 30) @@ -63,11 +63,12 @@ , function=function , recursive=recursive ) - def namespaces( self, name=None, function=None, recursive=None ): + def namespaces( self, name=None, function=None, recursive=None, allow_empty=None ): return self._find_multiple( scopedef.scopedef_t._impl_matchers[ namespace_t.namespace ] , name=name , function=function - , recursive=recursive ) + , recursive=recursive + , allow_empty=allow_empty) def free_function( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( scopedef.scopedef_t._impl_matchers[ namespace_t.free_function ] @@ -80,7 +81,7 @@ , header_file=header_file , recursive=recursive ) - def free_functions( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + def free_functions( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( scopedef.scopedef_t._impl_matchers[ namespace_t.free_function ] , name=name , function=function @@ -89,7 +90,8 @@ , arg_types=arg_types , header_dir=header_dir , header_file=header_file - , recursive=recursive) + , recursive=recursive + , allow_empty=allow_empty) def free_operator( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( scopedef.scopedef_t._impl_matchers[ namespace_t.free_operator ] @@ -103,7 +105,7 @@ , header_file=header_file , recursive=recursive ) - def free_operators( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + def free_operators( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( scopedef.scopedef_t._impl_matchers[ namespace_t.free_operator ] , name=name , symbol=symbol @@ -113,4 +115,7 @@ , arg_types=arg_types , header_dir=header_dir , header_file=header_file - , recursive=recursive ) \ No newline at end of file + , recursive=recursive + , allow_empty=allow_empty) + + \ No newline at end of file Modified: pygccxml_dev/pygccxml/declarations/scopedef.py =================================================================== --- pygccxml_dev/pygccxml/declarations/scopedef.py 2006-05-02 04:10:19 UTC (rev 29) +++ pygccxml_dev/pygccxml/declarations/scopedef.py 2006-05-02 04:15:28 UTC (rev 30) @@ -194,7 +194,13 @@ return self.RECURSIVE_DEFAULT else: return keywds[ 'recursive' ] - + + def __findout_allow_empty( self, **keywds ): + if None is keywds[ 'allow_empty' ]: + return self.ALLOW_EMPTY_MDECL_WRAPPER + else: + return keywds[ 'allow_empty' ] + def __findout_decl_type( self, match_class, **keywds ): if keywds.has_key( 'decl_type' ): return keywds['decl_type'] @@ -202,7 +208,10 @@ matcher_args = keywds.copy() del matcher_args['function'] del matcher_args['recursive'] + if matcher_args.has_key('allow_empty'): + del matcher_args['allow_empty'] + matcher = match_class( **matcher_args ) if matcher.decl_type: return matcher.decl_type @@ -212,6 +221,8 @@ matcher_args = keywds.copy() del matcher_args['function'] del matcher_args['recursive'] + if matcher_args.has_key('allow_empty'): + del matcher_args['allow_empty'] matcher = match_class( **matcher_args ) if keywds['function']: @@ -234,11 +245,17 @@ if matcher.is_full_name(): name = matcher.decl_name_only if recursive: - utils.logger.info( 'query has been optimized on type and name' ) - return self._type2name2decls[decl_type][name] + utils.logger.info( 'query has been optimized on type and name' ) + if self._type2name2decls[decl_type].has_key( name ): + return self._type2name2decls[decl_type][name] + else: + return [] else: utils.logger.info( 'non recursive query has been optimized on type and name' ) - return self._type2name2decls_nr[decl_type][name] + if self._type2name2decls_nr[decl_type].has_key( name ): + return self._type2name2decls_nr[decl_type][name] + else: + return [] elif decl_type: if recursive: utils.logger.info( 'query has been optimized on type' ) @@ -273,13 +290,14 @@ matcher = self.__create_matcher( match_class, **norm_keywds ) dtype = self.__findout_decl_type( match_class, **norm_keywds ) recursive_ = self.__findout_recursive( **norm_keywds ) + allow_empty = self.__findout_allow_empty( **norm_keywds ) decls = self.__findout_range( norm_keywds['name'], dtype, recursive_ ) found = matcher_module.matcher.find( matcher, decls, False ) mfound = mdecl_wrapper.mdecl_wrapper_t( found ) utils.logger.info( '%d declaration(s) that match query' % len(mfound) ) utils.logger.info( 'find single query execution - done( %f seconds )' % ( time.clock() - start_time ) ) - if not mfound and not self.ALLOW_EMPTY_MDECL_WRAPPER: + if not mfound and not allow_empty: raise RuntimeError( "Multi declaration query returned 0 declarations." ) return mfound @@ -294,14 +312,15 @@ , header_file=header_file , recursive=recursive) - def decls( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None ): + def decls( self, name=None, function=None, decl_type=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.decl ] , name=name , function=function , decl_type=decl_type , header_dir=header_dir , header_file=header_file - , recursive=recursive) + , recursive=recursive + , allow_empty=allow_empty) def class_( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( self._impl_matchers[ scopedef_t.class_ ] @@ -312,14 +331,15 @@ , header_file=header_file , recursive=recursive) - def classes( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): + def classes( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.class_ ] , name=name , function=function , decl_type=self._impl_decl_types[ scopedef_t.class_ ] , header_dir=header_dir , header_file=header_file - , recursive=recursive) + , recursive=recursive + , allow_empty=allow_empty) def variable( self, name=None, function=None, type=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( self._impl_matchers[ scopedef_t.variable ] @@ -330,14 +350,15 @@ , header_file=header_file , recursive=recursive) - def variables( self, name=None, function=None, type=None, header_dir=None, header_file=None, recursive=None ): + def variables( self, name=None, function=None, type=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.variable ] , name=name , function=function , type=type , header_dir=header_dir , header_file=header_file - , recursive=recursive ) + , recursive=recursive + , allow_empty=allow_empty) def calldef( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( self._impl_matchers[ scopedef_t.calldef ] @@ -350,7 +371,7 @@ , header_file=header_file , recursive=recursive ) - def calldefs( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + def calldefs( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.calldef ] , name=name , function=function @@ -359,7 +380,8 @@ , arg_types=arg_types , header_dir=header_dir , header_file=header_file - , recursive=recursive) + , recursive=recursive + , allow_empty=allow_empty) def operator( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, decl_type=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( self._impl_matchers[ scopedef_t.operator ] @@ -373,7 +395,7 @@ , header_file=header_file , recursive=recursive ) - def operators( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, decl_type=None, header_dir=None, header_file=None, recursive=None ): + def operators( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, decl_type=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.operator ] , name=name , symbol=symbol @@ -383,7 +405,8 @@ , arg_types=arg_types , header_dir=header_dir , header_file=header_file - , recursive=recursive ) + , recursive=recursive + , allow_empty=allow_empty) def member_function( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( self._impl_matchers[ scopedef_t.member_function ] @@ -396,7 +419,7 @@ , header_file=header_file , recursive=recursive ) - def member_functions( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + def member_functions( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.member_function ] , name=name , function=function @@ -405,7 +428,8 @@ , arg_types=arg_types , header_dir=header_dir , header_file=header_file - , recursive=recursive) + , recursive=recursive + , allow_empty=allow_empty) def constructor( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( self._impl_matchers[ scopedef_t.constructor ] @@ -418,7 +442,7 @@ , header_file=header_file , recursive=recursive ) - def constructors( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + def constructors( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.constructor ] , name=name , function=function @@ -427,7 +451,8 @@ , arg_types=arg_types , header_dir=header_dir , header_file=header_file - , recursive=recursive) + , recursive=recursive + , allow_empty=allow_empty) def member_operator( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( self._impl_matchers[ scopedef_t.member_operator ] @@ -441,7 +466,7 @@ , header_file=header_file , recursive=recursive ) - def member_operators( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + def member_operators( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.member_operator ] , name=name , symbol=symbol @@ -451,7 +476,8 @@ , arg_types=arg_types , header_dir=header_dir , header_file=header_file - , recursive=recursive ) + , recursive=recursive + , allow_empty=allow_empty) def casting_operator( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( self._impl_matchers[ scopedef_t.casting_operator ] @@ -464,7 +490,7 @@ , header_file=header_file , recursive=recursive ) - def casting_operators( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + def casting_operators( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.casting_operator ] , name=name , function=function @@ -473,7 +499,8 @@ , arg_types=arg_types , header_dir=header_dir , header_file=header_file - , recursive=recursive) + , recursive=recursive + , allow_empty=allow_empty) def enumeration( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): return self._find_single( self._impl_matchers[ scopedef_t.enumeration ] @@ -486,13 +513,14 @@ #adding small aliase enum = enumeration - def enumerations( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): + def enumerations( self, name=None, function=None, header_dir=None, header_file=None, recursive=None, allow_empty=None ): return self._find_multiple( self._impl_matchers[ scopedef_t.enumeration ] , name=name , function=function , decl_type=self._impl_decl_types[ scopedef_t.enumeration ] , header_dir=header_dir , header_file=header_file - , recursive=recursive) + , recursive=recursive + , allow_empty=allow_empty) #adding small aliase enums = enumerations \ No newline at end of file Modified: pygccxml_dev/unittests/namespace_matcher_tester.py =================================================================== --- pygccxml_dev/unittests/namespace_matcher_tester.py 2006-05-02 04:10:19 UTC (rev 29) +++ pygccxml_dev/unittests/namespace_matcher_tester.py 2006-05-02 04:15:28 UTC (rev 30) @@ -25,8 +25,13 @@ def test( self ): criteria = declarations.namespace_matcher_t( name='bit_fields' ) x = declarations.matcher.get_single( criteria, self.declarations ) - self.failUnless( str(criteria) == '(decl type==namespace_t) and (name==bit_fields)' ) + self.failUnless( str(criteria) == '(decl type==namespace_t) and (name==bit_fields)' ) + def test_allow_empty( self ): + global_ns = declarations.get_global_namespace( self.declarations ) + global_ns.init_optimizer() + self.failUnless( 0 == len( global_ns.namespaces( 'does not exist', allow_empty=True ) ) ) + def create_suite(): suite = unittest.TestSuite() suite.addTest( unittest.makeSuite(tester_t)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:10:27
|
Revision: 29 Author: roman_yakovenko Date: 2006-05-01 21:10:19 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=29&view=rev Log Message: ----------- adding 2 new matchers: custom_matcher_t - as input takes user defined function, useful for creation of complex queries virtuality_type_matcher_t - matches function by it's "virtual" characteristic Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/filters.py Modified: pygccxml_dev/pygccxml/declarations/filters.py =================================================================== --- pygccxml_dev/pygccxml/declarations/filters.py 2006-05-02 04:06:14 UTC (rev 28) +++ pygccxml_dev/pygccxml/declarations/filters.py 2006-05-02 04:10:19 UTC (rev 29) @@ -468,3 +468,46 @@ def __str__( self ): return '(access type=%s)' % self.access_type +class virtuality_type_matcher_t( matcher_base_t ): + """ + Instance of this class will match declaration by its virtuality type: not virtual, + virtual or pure virtual. If declarations does not have virtuality type, for example + free function, then False will be returned. + """ + + def __init__( self, virtuality_type ): + """ + @param access_type: declaration access type + @type access_type: L{VIRTUALITY_TYPES} defines few consts for your convinience. + """ + matcher_base_t.__init__( self ) + self.virtuality_type = virtuality_type + + def __call__( self, decl ): + if not isinstance( decl.parent, class_declaration.class_t ): + return False + return self.virtuality_type == decl.virtuality + + def __str__( self ): + return '(virtuality type=%s)' % self.virtuality_type + + +class custom_matcher_t( matcher_base_t ): + """ + Instance of this class will match declaration by user custom criteria. + """ + + def __init__( self, function ): + """ + @param function: callable, that takes single argument - declaration instance + should return True or False + """ + matcher_base_t.__init__( self ) + self.function = function + + def __call__( self, decl ): + return bool( self.function( decl ) ) + + def __str__( self ): + return '(user criteria)' + \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:06:23
|
Revision: 28 Author: roman_yakovenko Date: 2006-05-01 21:06:14 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=28&view=rev Log Message: ----------- removing version number Modified Paths: -------------- pygccxml_dev/pygccxml/__init__.py Modified: pygccxml_dev/pygccxml/__init__.py =================================================================== --- pygccxml_dev/pygccxml/__init__.py 2006-05-01 13:39:02 UTC (rev 27) +++ pygccxml_dev/pygccxml/__init__.py 2006-05-02 04:06:14 UTC (rev 28) @@ -33,8 +33,6 @@ import pygccxml.parser as parser import pygccxml.utils as utils -__version__ = '0.7.2' - #TODO: # 1. Write documentation for filtering functionality. # 2. Add "explicit" property for constructors This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mb...@us...> - 2006-05-01 13:39:13
|
Revision: 27 Author: mbaas Date: 2006-05-01 06:39:02 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=27&view=rev Log Message: ----------- Added a readme Added Paths: ----------- pyplusplus_dev/README.txt Added: pyplusplus_dev/README.txt =================================================================== --- pyplusplus_dev/README.txt (rev 0) +++ pyplusplus_dev/README.txt 2006-05-01 13:39:02 UTC (rev 27) @@ -0,0 +1,52 @@ +pyplusplus - Boost.Python code generator +======================================== + +pyplusplus is a code generator for Boost.Python that simplifies writing +Python bindings of a C/C++ library. The tool is implemented as a Python +module which is controlled by a user script. + +Homepage: http://www.language-binding.net/pyplusplus/pyplusplus.html + + +Requirements +------------ + +In order to use pyplusplus you need the following additional components: + +- Python v2.4 (or higher) +- pygccxml (http://www.language-binding.net/pygccxml/pygccxml.html) +- GCC-XML (http://www.gccxml.org) + + +Install +------- + +The package uses the Python distutils so you can do the usual procedure: + + python setup.py install + +For more information about using the distutils see the Python manual +"Installing Python Modules". + + +Documentation +------------- + +For examples and tutorials see the pyplusplus web site. An API reference +is available in the directory docs/apidocs in the source archive. + +If you obtained the source code from the subversion repository you +have to build the API reference yourself. This can be done using the +setup script: + + python setup.py doc + +In order for this to work you need epydoc (http://epydoc.sourceforge.net) +and pygccxml. + + +-------------------------------------------------------------------------- +Copyright 2004 Roman Yakovenko. +Distributed under the Boost Software License, Version 1.0. (See +accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mb...@us...> - 2006-05-01 13:38:34
|
Revision: 26 Author: mbaas Date: 2006-05-01 06:38:23 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=26&view=rev Log Message: ----------- Added a readme Added Paths: ----------- pygccxml_dev/README.txt Added: pygccxml_dev/README.txt =================================================================== --- pygccxml_dev/README.txt (rev 0) +++ pygccxml_dev/README.txt 2006-05-01 13:38:23 UTC (rev 26) @@ -0,0 +1,39 @@ +pygccxml - Reading GCCXML output +================================ + +pygccxml is a specialized XML reader that reads the output from GCCXML. + +Homepage: http://www.language-binding.net/pygccxml/pygccxml.html + + +Install +------- + +The package uses the Python distutils so you can do the usual procedure: + + python setup.py install + +For more information about using the distutils see the Python manual +"Installing Python Modules". + + +Documentation +------------- + +For examples and tutorials see the pygccxml web site. An API reference +is available in the directory docs/apidocs in the source archive. + +If you obtained the source code from the subversion repository you +have to build the API reference yourself. This can be done using the +setup script: + + python setup.py doc + +In order for this to work you need epydoc (http://epydoc.sourceforge.net). + + +-------------------------------------------------------------------------- +Copyright 2004 Roman Yakovenko. +Distributed under the Boost Software License, Version 1.0. (See +accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mb...@us...> - 2006-05-01 10:30:48
|
Revision: 25 Author: mbaas Date: 2006-05-01 03:30:39 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=25&view=rev Log Message: ----------- Removed the .svn directories from the source archive Modified Paths: -------------- pygccxml_dev/MANIFEST.in Modified: pygccxml_dev/MANIFEST.in =================================================================== --- pygccxml_dev/MANIFEST.in 2006-05-01 10:30:09 UTC (rev 24) +++ pygccxml_dev/MANIFEST.in 2006-05-01 10:30:39 UTC (rev 25) @@ -1,6 +1,7 @@ include LICENSE_1_0.txt include unittests/*.py -include unittests/data/* +include unittests/data/*.hpp +include unittests/data/*.xml recursive-include docs/apidocs *.css recursive-include docs/apidocs *.html include docs/*.rest @@ -8,4 +9,4 @@ include docs/example/* include docs/history/* include docs/logos/* - +prune docs/*/.svn This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mb...@us...> - 2006-05-01 10:30:17
|
Revision: 24 Author: mbaas Date: 2006-05-01 03:30:09 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=24&view=rev Log Message: ----------- Removed the .svn directories from the source archive Modified Paths: -------------- pyplusplus_dev/MANIFEST.in Modified: pyplusplus_dev/MANIFEST.in =================================================================== --- pyplusplus_dev/MANIFEST.in 2006-04-30 05:51:19 UTC (rev 23) +++ pyplusplus_dev/MANIFEST.in 2006-05-01 10:30:09 UTC (rev 24) @@ -1,7 +1,8 @@ include LICENSE_1_0.txt include MANIFEST.in include unittests/*.py -include unittests/data/* +include unittests/data/*.hpp +include unittests/data/*.cpp recursive-include docs/apidocs *.css recursive-include docs/apidocs *.html include docs/*.rest @@ -12,4 +13,6 @@ include docs/history/* include docs/logos/* include docs/tutorials/* +prune docs/*/.svn +prune docs/*/*/.svn recursive-include examples/* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-04-30 05:51:25
|
Revision: 23 Author: roman_yakovenko Date: 2006-04-29 22:51:19 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=23&view=rev Log Message: ----------- Small change of unit tests configuration. The main reason is to allow other people to run unit tests on regular basis. Modified Paths: -------------- pyplusplus_dev/environment.py Modified: pyplusplus_dev/environment.py =================================================================== --- pyplusplus_dev/environment.py 2006-04-30 05:49:35 UTC (rev 22) +++ pyplusplus_dev/environment.py 2006-04-30 05:51:19 UTC (rev 23) @@ -30,12 +30,14 @@ boost.libs = 'd:/boost_cvs/bin' boost.include = 'd:/boost_cvs' python.libs = 'c:/python/libs' - python.include = 'c:/python/include' + python.include = 'c:/python/include' + gccxml.executable = 'c:/tools/gccxml/bin/gccxml.exe' else: scons.suffix = '.so' boost.libs = '/home/roman/boost_cvs/bin' boost.include = '/home/roman/boost_cvs' - python.include = '/usr/include/python2.4' + python.include = '/usr/include/python2.4' + gccxml.executable = '/home/roman/gccxml/bin/gccxml' _my_path = None @@ -43,7 +45,7 @@ import environment_path_helper environment_path_helper.raise_error() except Exception, error: - _my_path = os.path.split( sys.exc_traceback.tb_frame.f_code.co_filename )[0] + _my_path = os.path.abspath( os.path.split( sys.exc_traceback.tb_frame.f_code.co_filename )[0] ) try: import pygccxml This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-04-30 05:49:41
|
Revision: 22 Author: roman_yakovenko Date: 2006-04-29 22:49:35 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=22&view=rev Log Message: ----------- Small change of unit tests configuration. The main reason is to allow other people to run unit tests on regular basis. Modified Paths: -------------- pygccxml_dev/unittests/autoconfig.py Modified: pygccxml_dev/unittests/autoconfig.py =================================================================== --- pygccxml_dev/unittests/autoconfig.py 2006-04-30 05:35:49 UTC (rev 21) +++ pygccxml_dev/unittests/autoconfig.py 2006-04-30 05:49:35 UTC (rev 22) @@ -5,13 +5,20 @@ import os import sys +import getpass #__pychecker__ = 'limit=1000' #import pychecker.checker + -gccxml_path = 'gccxml' +gccxml_path = '' data_directory = os.path.abspath( os.path.join( os.curdir, 'data' ) ) +if 'roman' in getpass.getuser(): + if sys.platform == 'win32': + gccxml_path = 'c:/tools/gccxml/bin/gccxml.exe' + else: + gccxml_path = '/home/roman/gccxml/bin/gccxml' try: import pygccxml print 'unittests will run on INSTALLED version' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-04-30 05:36:03
|
Revision: 21 Author: roman_yakovenko Date: 2006-04-29 22:35:49 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=21&view=rev Log Message: ----------- general clean up: renaming release_manager directory to developer_scripts For more explanation please read "developer_scripts/readme.txt" file Added Paths: ----------- developer_scripts/ developer_scripts/readme.txt Removed Paths: ------------- developer_scripts/release_builder.py developer_scripts/sf-how-to.txt developer_scripts/thanks_to.txt developer_scripts/tools.txt Copied: developer_scripts (from rev 17, release_manager) Added: developer_scripts/readme.txt =================================================================== --- developer_scripts/readme.txt (rev 0) +++ developer_scripts/readme.txt 2006-04-30 05:35:49 UTC (rev 21) @@ -0,0 +1,4 @@ +This directory contains few Python scripts, that are useful for maintenance +of source tree: + +clean_source_dir.py - remove binaries files from the source tree \ No newline at end of file Deleted: developer_scripts/release_builder.py =================================================================== --- release_manager/release_builder.py 2006-04-28 16:31:23 UTC (rev 17) +++ developer_scripts/release_builder.py 2006-04-30 05:35:49 UTC (rev 21) @@ -1,164 +0,0 @@ -# Copyright 2004 Roman Yakovenko. -# Distributed under the Boost Software License, Version 1.0. (See -# accompanying file LICENSE_1_0.txt or copy at -# http://www.boost.org/LICENSE_1_0.txt) - -import os -import sys -import shutil -from sets import Set as set -from file_system_iter import files_iterator, folders_iterator - -class release_builder_t( object ): - def __init__( self ): - object.__init__( self ) - - #source code root directory - self.scroot_dir, curr_dir = os.path.split( os.path.abspath( os.curdir ) ) - #This file should be run from release_manager directory - if curr_dir != 'release_manager': - raise RuntimeError( 'Current working directory should be release_manager' ) - #next release root dir - self.nrroot_dir = os.path.join( self.scroot_dir, '__next_release__' ) - - if not os.environ.has_key( 'PYTHONPATH' ): - os.environ['PYTHONPATH'] = '' - if sys.platform == 'win32': - environment_var_delimiter = ';' - else: # sys.platform == 'linux2' - environment_var_delimiter = ':' - - - self.packages = {} - for pkg in ('pygccxml', 'pyplusplus'): - package_path = os.path.join( self.nrroot_dir, pkg + self.get_version( pkg ) ) - self.packages[ pkg ] = package_path - os.environ[ 'PYTHONPATH' ] = os.environ[ 'PYTHONPATH' ] \ - + environment_var_delimiter \ - + package_path - - def get_version( self, package_name ): - init_file_path = os.path.join( self.scroot_dir, package_name, '__init__.py' ) - init_file = file( init_file_path ) - for line in init_file: - if line.startswith( '__version__' ): - version = line.split( '=' )[1] - return version.strip().strip("'") - raise RuntimeError( "Unable to find version for package %s!" % package_name ) - - - def log( self, message ): - print '[release builder]', message - - #def run_unitests( self ): - #self.log( 'running unittests' ) - #for package in self.__packages: - #self.log( 'running unittests for package "%s"' % package.__name__ ) - #sys_snapshot = self.__take_sys_snapshot() - #sys.path.append( os.path.join( package.__path__[0], 'unittests' ) ) - #test_all = __import__( 'test_all' ) - #was_successful = test_all.run_suite() - #self.__restore_sys_snapshot( sys_snapshot ) - #if not was_successful: - #raise RuntimeError( '%s unittest failed' % package.__name__) - #self.log( 'running unittests - done' ) - - def create_dist_packages( self ): - self.log( 'creating next release directory "%s" ' % self.nrroot_dir ) - if os.path.exists( self.nrroot_dir ): - shutil.rmtree( self.nrroot_dir ) - os.mkdir( self.nrroot_dir ) - map( os.mkdir, self.packages.values() ) - - for pkg, pkg_nr_dir in self.packages.items(): - self.log( 'creating target directory for package "%s"' % pkg ) - - shutil.copy( os.path.join( self.scroot_dir, 'release_manager', 'setup_%s.py' % pkg ) - , os.path.join( pkg_nr_dir, 'setup.py' ) ) - - pkg_nr_sc_dir = os.path.join( pkg_nr_dir, pkg ) - shutil.copytree( os.path.join( self.scroot_dir, pkg ), pkg_nr_sc_dir ) - - pkg_nr_docs_dir = os.path.join( pkg_nr_dir, 'docs' ) - shutil.copytree( os.path.join( self.scroot_dir, pkg, 'docs' ), pkg_nr_docs_dir ) - - shutil.rmtree( os.path.join( pkg_nr_sc_dir, 'docs' ) ) - - shutil.move( os.path.join( pkg_nr_sc_dir, 'unittests' ) - , os.path.join( pkg_nr_dir, 'unittests' ) ) - if pkg == 'pyplusplus': - shutil.move( os.path.join( pkg_nr_sc_dir, 'examples' ) - , os.path.join( pkg_nr_dir, 'examples' ) ) - shutil.rmtree( os.path.join( pkg_nr_sc_dir, 'experimental' ) ) - shutil.rmtree( os.path.join( pkg_nr_docs_dir, 'ConferenceIsrael2006' ) ) - shutil.rmtree( os.path.join( pkg_nr_dir, 'examples', 'tnfox' ) ) - - self.log( 'removing special directories') - - def generate_docs(self): - self.log( 'generating documentation' ) - - options = [ '--output="%(output)s"' - , '--docformat=epytext' - , '--url=http://www.language-binding.net' - #, '--graph=all' - , '--name=%(name)s' - , '--verbose' - , ' %(packages)s' ] - cmd_line = "epydoc " + ' '.join( options ) - cmd = cmd_line % { - 'output' : os.path.join( self.packages['pygccxml'], 'docs', 'apidocs' ) - , 'name' : 'pygccxml' - , 'packages' : os.path.join( self.packages['pygccxml'], 'pygccxml' ) } - self.log( 'running epydoc: ' + cmd ) - os.system( cmd ) - - cmd = cmd_line % { - 'output' : os.path.join( self.packages['pyplusplus'], 'docs', 'apidocs' ) - , 'name' : 'pyplusplus' - , 'packages' : ' '.join( [ os.path.join( self.packages['pyplusplus'], 'pyplusplus' ) - , os.path.join( self.packages['pygccxml'], 'pygccxml' ) ] ) } - self.log( 'running epydoc: ' + cmd ) - os.system(cmd) - - self.log( 'generating documentation - done' ) - - def clean_directories(self): - dir_names = [ 'cvs', 'temp', 'debug', 'release' ] - file_exts = [ - '*.pyc', '*.so', '*.os', '*.cpp~', '*.hpp~', '*.dll', '*.obj', '*.a' - , '*.def', '*.vsd', '*.sxd', '*.exp', '*.lib', '*.scons', '*.bak' - , '*.pdb', '*.idb', '*.pdb', '*.dat', '*.ncb', '*.suo' ] - files = [ '.sconsign', 'place_holder', 'www_configuration.py' ] - - self.log( 'creaning target directory' ) - - self.log( 'removing special directories') - tmp = [] - for dir_ in folders_iterator( self.nrroot_dir ): - if os.path.split( dir_ )[1].lower() in dir_names: - tmp.append( dir_ ) - tmp.sort() - tmp.reverse() - map( shutil.rmtree, tmp ) - self.log( 'removing special directories - done') - - self.log( 'removing special files') - map( os.remove, files_iterator( self.nrroot_dir, file_exts ) ) - - for file_ in files_iterator( self.nrroot_dir ): - if os.path.split( file_ )[1] in files: - os.remove( file_ ) - self.log( 'removing special files - done') - - self.log( 'creaning target directory - done' ) - - -if __name__ == "__main__": - rb = release_builder_t() - #srb.run_unitests() - rb.create_dist_packages() - rb.generate_docs() - rb.clean_directories() - - \ No newline at end of file Deleted: developer_scripts/sf-how-to.txt =================================================================== --- release_manager/sf-how-to.txt 2006-04-28 16:31:23 UTC (rev 17) +++ developer_scripts/sf-how-to.txt 2006-04-30 05:35:49 UTC (rev 21) @@ -1,31 +0,0 @@ -How to load web pages on SF ? - Phil Schwartz wrote: - I will add it shortly. As for the SF website interface, perhaps I can - help a bit. It took me some time to figure it out, but I've been a SF - user for several years so I know a lot about their interface. - - Basically, you need to ssh into your shell acount on SF. The easiest - way to do it is: - - $ ssh rom...@py... - - Once you're logged in (after supplying your password, of course). - You can then cd to your website directory: - - $ cd /home/groups/p/py/pygccxml/htdocs - - You can verify the existence of your web directory as such: - - $ l -d /home/groups/p/py/pygccxml - - You can then simply edit the index.html page with your favorite editor - (vi, emacs, pico, etc). - - Additionally, you can edit the files on your local system and use scp to - transfer them to your project's homepage. This is the method that I use - to update my websites (kodos, releaseforge, scratchy, denyhosts, faqtor, - etc...). - - cd www - scp * rom...@py...:/home/groups/p/py/pygccxml/htdocs - \ No newline at end of file Deleted: developer_scripts/thanks_to.txt =================================================================== --- release_manager/thanks_to.txt 2006-04-28 16:31:23 UTC (rev 17) +++ developer_scripts/thanks_to.txt 2006-04-30 05:35:49 UTC (rev 21) @@ -1,8 +0,0 @@ -Yulia -- my wife for patience -Brad King -- the author of GCCXML -Thomas Heller -- good SAX example -Detlev Offenbach -- eric3 - Python IDE \ No newline at end of file Deleted: developer_scripts/tools.txt =================================================================== --- release_manager/tools.txt 2006-04-28 16:31:23 UTC (rev 17) +++ developer_scripts/tools.txt 2006-04-30 05:35:49 UTC (rev 21) @@ -1,5 +0,0 @@ -AdBlock -Add Bookmark Here -fireFTP -LinkChecker -Linky \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-04-30 05:22:59
|
Revision: 20 Author: roman_yakovenko Date: 2006-04-29 22:22:50 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=20&view=rev Log Message: ----------- I keep my word :-). Removing release_builder.py file. Removed Paths: ------------- release_manager/release_builder.py Deleted: release_manager/release_builder.py =================================================================== --- release_manager/release_builder.py 2006-04-30 05:21:08 UTC (rev 19) +++ release_manager/release_builder.py 2006-04-30 05:22:50 UTC (rev 20) @@ -1,164 +0,0 @@ -# Copyright 2004 Roman Yakovenko. -# Distributed under the Boost Software License, Version 1.0. (See -# accompanying file LICENSE_1_0.txt or copy at -# http://www.boost.org/LICENSE_1_0.txt) - -import os -import sys -import shutil -from sets import Set as set -from file_system_iter import files_iterator, folders_iterator - -class release_builder_t( object ): - def __init__( self ): - object.__init__( self ) - - #source code root directory - self.scroot_dir, curr_dir = os.path.split( os.path.abspath( os.curdir ) ) - #This file should be run from release_manager directory - if curr_dir != 'release_manager': - raise RuntimeError( 'Current working directory should be release_manager' ) - #next release root dir - self.nrroot_dir = os.path.join( self.scroot_dir, '__next_release__' ) - - if not os.environ.has_key( 'PYTHONPATH' ): - os.environ['PYTHONPATH'] = '' - if sys.platform == 'win32': - environment_var_delimiter = ';' - else: # sys.platform == 'linux2' - environment_var_delimiter = ':' - - - self.packages = {} - for pkg in ('pygccxml', 'pyplusplus'): - package_path = os.path.join( self.nrroot_dir, pkg + self.get_version( pkg ) ) - self.packages[ pkg ] = package_path - os.environ[ 'PYTHONPATH' ] = os.environ[ 'PYTHONPATH' ] \ - + environment_var_delimiter \ - + package_path - - def get_version( self, package_name ): - init_file_path = os.path.join( self.scroot_dir, package_name, '__init__.py' ) - init_file = file( init_file_path ) - for line in init_file: - if line.startswith( '__version__' ): - version = line.split( '=' )[1] - return version.strip().strip("'") - raise RuntimeError( "Unable to find version for package %s!" % package_name ) - - - def log( self, message ): - print '[release builder]', message - - #def run_unitests( self ): - #self.log( 'running unittests' ) - #for package in self.__packages: - #self.log( 'running unittests for package "%s"' % package.__name__ ) - #sys_snapshot = self.__take_sys_snapshot() - #sys.path.append( os.path.join( package.__path__[0], 'unittests' ) ) - #test_all = __import__( 'test_all' ) - #was_successful = test_all.run_suite() - #self.__restore_sys_snapshot( sys_snapshot ) - #if not was_successful: - #raise RuntimeError( '%s unittest failed' % package.__name__) - #self.log( 'running unittests - done' ) - - def create_dist_packages( self ): - self.log( 'creating next release directory "%s" ' % self.nrroot_dir ) - if os.path.exists( self.nrroot_dir ): - shutil.rmtree( self.nrroot_dir ) - os.mkdir( self.nrroot_dir ) - map( os.mkdir, self.packages.values() ) - - for pkg, pkg_nr_dir in self.packages.items(): - self.log( 'creating target directory for package "%s"' % pkg ) - - shutil.copy( os.path.join( self.scroot_dir, 'release_manager', 'setup_%s.py' % pkg ) - , os.path.join( pkg_nr_dir, 'setup.py' ) ) - - pkg_nr_sc_dir = os.path.join( pkg_nr_dir, pkg ) - shutil.copytree( os.path.join( self.scroot_dir, pkg ), pkg_nr_sc_dir ) - - pkg_nr_docs_dir = os.path.join( pkg_nr_dir, 'docs' ) - shutil.copytree( os.path.join( self.scroot_dir, pkg, 'docs' ), pkg_nr_docs_dir ) - - shutil.rmtree( os.path.join( pkg_nr_sc_dir, 'docs' ) ) - - shutil.move( os.path.join( pkg_nr_sc_dir, 'unittests' ) - , os.path.join( pkg_nr_dir, 'unittests' ) ) - if pkg == 'pyplusplus': - shutil.move( os.path.join( pkg_nr_sc_dir, 'examples' ) - , os.path.join( pkg_nr_dir, 'examples' ) ) - shutil.rmtree( os.path.join( pkg_nr_sc_dir, 'experimental' ) ) - shutil.rmtree( os.path.join( pkg_nr_docs_dir, 'ConferenceIsrael2006' ) ) - shutil.rmtree( os.path.join( pkg_nr_dir, 'examples', 'tnfox' ) ) - - self.log( 'removing special directories') - - def generate_docs(self): - self.log( 'generating documentation' ) - - options = [ '--output="%(output)s"' - , '--docformat=epytext' - , '--url=http://www.language-binding.net' - #, '--graph=all' - , '--name=%(name)s' - , '--verbose' - , ' %(packages)s' ] - cmd_line = "epydoc " + ' '.join( options ) - cmd = cmd_line % { - 'output' : os.path.join( self.packages['pygccxml'], 'docs', 'apidocs' ) - , 'name' : 'pygccxml' - , 'packages' : os.path.join( self.packages['pygccxml'], 'pygccxml' ) } - self.log( 'running epydoc: ' + cmd ) - os.system( cmd ) - - cmd = cmd_line % { - 'output' : os.path.join( self.packages['pyplusplus'], 'docs', 'apidocs' ) - , 'name' : 'pyplusplus' - , 'packages' : ' '.join( [ os.path.join( self.packages['pyplusplus'], 'pyplusplus' ) - , os.path.join( self.packages['pygccxml'], 'pygccxml' ) ] ) } - self.log( 'running epydoc: ' + cmd ) - os.system(cmd) - - self.log( 'generating documentation - done' ) - - def clean_directories(self): - dir_names = [ 'cvs', 'temp', 'debug', 'release' ] - file_exts = [ - '*.pyc', '*.so', '*.os', '*.cpp~', '*.hpp~', '*.dll', '*.obj', '*.a' - , '*.def', '*.vsd', '*.sxd', '*.exp', '*.lib', '*.scons', '*.bak' - , '*.pdb', '*.idb', '*.pdb', '*.dat', '*.ncb', '*.suo' ] - files = [ '.sconsign', 'place_holder', 'www_configuration.py' ] - - self.log( 'creaning target directory' ) - - self.log( 'removing special directories') - tmp = [] - for dir_ in folders_iterator( self.nrroot_dir ): - if os.path.split( dir_ )[1].lower() in dir_names: - tmp.append( dir_ ) - tmp.sort() - tmp.reverse() - map( shutil.rmtree, tmp ) - self.log( 'removing special directories - done') - - self.log( 'removing special files') - map( os.remove, files_iterator( self.nrroot_dir, file_exts ) ) - - for file_ in files_iterator( self.nrroot_dir ): - if os.path.split( file_ )[1] in files: - os.remove( file_ ) - self.log( 'removing special files - done') - - self.log( 'creaning target directory - done' ) - - -if __name__ == "__main__": - rb = release_builder_t() - #srb.run_unitests() - rb.create_dist_packages() - rb.generate_docs() - rb.clean_directories() - - \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-04-30 05:21:19
|
Revision: 19 Author: roman_yakovenko Date: 2006-04-29 22:21:08 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=19&view=rev Log Message: ----------- genera; clean up: removing 2 files. People from thanks_to.txt file are referenced from web site. This is enough. Removed Paths: ------------- release_manager/sf-how-to.txt release_manager/thanks_to.txt Deleted: release_manager/sf-how-to.txt =================================================================== --- release_manager/sf-how-to.txt 2006-04-30 05:17:49 UTC (rev 18) +++ release_manager/sf-how-to.txt 2006-04-30 05:21:08 UTC (rev 19) @@ -1,31 +0,0 @@ -How to load web pages on SF ? - Phil Schwartz wrote: - I will add it shortly. As for the SF website interface, perhaps I can - help a bit. It took me some time to figure it out, but I've been a SF - user for several years so I know a lot about their interface. - - Basically, you need to ssh into your shell acount on SF. The easiest - way to do it is: - - $ ssh rom...@py... - - Once you're logged in (after supplying your password, of course). - You can then cd to your website directory: - - $ cd /home/groups/p/py/pygccxml/htdocs - - You can verify the existence of your web directory as such: - - $ l -d /home/groups/p/py/pygccxml - - You can then simply edit the index.html page with your favorite editor - (vi, emacs, pico, etc). - - Additionally, you can edit the files on your local system and use scp to - transfer them to your project's homepage. This is the method that I use - to update my websites (kodos, releaseforge, scratchy, denyhosts, faqtor, - etc...). - - cd www - scp * rom...@py...:/home/groups/p/py/pygccxml/htdocs - \ No newline at end of file Deleted: release_manager/thanks_to.txt =================================================================== --- release_manager/thanks_to.txt 2006-04-30 05:17:49 UTC (rev 18) +++ release_manager/thanks_to.txt 2006-04-30 05:21:08 UTC (rev 19) @@ -1,8 +0,0 @@ -Yulia -- my wife for patience -Brad King -- the author of GCCXML -Thomas Heller -- good SAX example -Detlev Offenbach -- eric3 - Python IDE \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-04-30 05:18:04
|
Revision: 18 Author: roman_yakovenko Date: 2006-04-29 22:17:49 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=18&view=rev Log Message: ----------- general clean up: removing tools.txt Removed Paths: ------------- release_manager/tools.txt Deleted: release_manager/tools.txt =================================================================== --- release_manager/tools.txt 2006-04-28 16:31:23 UTC (rev 17) +++ release_manager/tools.txt 2006-04-30 05:17:49 UTC (rev 18) @@ -1,5 +0,0 @@ -AdBlock -Add Bookmark Here -fireFTP -LinkChecker -Linky \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mb...@us...> - 2006-04-28 16:31:29
|
Revision: 17 Author: mbaas Date: 2006-04-28 09:31:23 -0700 (Fri, 28 Apr 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=17&view=rev Log Message: ----------- Update PYTHONPATH before calling epydoc. This allows generating the documentation even when pygccxml is not 'officially' installed but resides in ../pygccxml_dev Modified Paths: -------------- pyplusplus_dev/setup.py Modified: pyplusplus_dev/setup.py =================================================================== --- pyplusplus_dev/setup.py 2006-04-28 16:18:49 UTC (rev 16) +++ pyplusplus_dev/setup.py 2006-04-28 16:31:23 UTC (rev 17) @@ -14,8 +14,28 @@ pygccxml_available = True except ImportError: pygccxml_available = False - + +def modifyPythonPath(): + """Update PYTHONPATH so that is refers to pygccxml_dev. + + The updated path is required for generating the documentation when + pygccxml is not 'officially' installed. + """ + if not os.environ.has_key( 'PYTHONPATH' ): + os.environ['PYTHONPATH'] = '' + if sys.platform == 'win32': + environment_var_delimiter = ';' + else: + environment_var_delimiter = ':' + + pygccxml_path = os.path.normpath(os.path.join(os.getcwd(), "..", "pygccxml_dev")) + os.environ[ 'PYTHONPATH' ] = os.environ[ 'PYTHONPATH' ] \ + + environment_var_delimiter \ + + pygccxml_path + print "Setting PYTHONPATH to", os.environ["PYTHONPATH"] + + def generate_doc(): """Generate the epydoc reference manual. """ @@ -31,6 +51,7 @@ # '--verbose', 'pyplusplus'] cmd_line = "epydoc " + ' '.join( options ) + modifyPythonPath() print cmd_line os.system(cmd_line) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |