[pygccxml-commit] SF.net SVN: pygccxml:[1590]
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2009-01-19 12:40:04
|
Revision: 1590 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1590&view=rev Author: roman_yakovenko Date: 2009-01-19 12:39:54 +0000 (Mon, 19 Jan 2009) Log Message: ----------- adding ability to create stand-alone executable for windows Modified Paths: -------------- pygccxml_dev/pygccxml/parser/etree_scanner.py Added Paths: ----------- pyplusplus_dev/scripts/freeze.py Modified: pygccxml_dev/pygccxml/parser/etree_scanner.py =================================================================== --- pygccxml_dev/pygccxml/parser/etree_scanner.py 2009-01-19 12:38:29 UTC (rev 1589) +++ pygccxml_dev/pygccxml/parser/etree_scanner.py 2009-01-19 12:39:54 UTC (rev 1590) @@ -4,6 +4,10 @@ # http://www.boost.org/LICENSE_1_0.txt) import scanner + +#keep py2exe happy +import xml.etree.ElementTree + import xml.etree.cElementTree as ElementTree class etree_saxifier_t(object): Added: pyplusplus_dev/scripts/freeze.py =================================================================== --- pyplusplus_dev/scripts/freeze.py (rev 0) +++ pyplusplus_dev/scripts/freeze.py 2009-01-19 12:39:54 UTC (rev 1590) @@ -0,0 +1,36 @@ +import os +import sys +#~ from cx_Freeze import setup, Executable + +sys.path.append( '..' ) +sys.path.append( '../../pygccxml_dev' ) + +import pygccxml +import pyplusplus + +#~ import encodings +#~ encodings_modules = os.listdir( os.path.dirname( encodings.__file__ ) ) +#~ encodings_modules = set([ os.path.splitext( m )[0] for m in encodings_modules ]) +#~ encodings_modules = map( lambda m: 'encodings.%s.py' % m, encodings_modules ) + +#~ executable = Executable( "wrap_library.py" + #~ , path=['../../pygccxml_dev', '..' ] + #~ , includes=encodings_modules + #~ , packages=['pygccxml','pyplusplus','encodings'] + encodings_modules ) + +#~ setup( name = "wrap_library", + #~ version = "0.1", + #~ description=r"generates ctypes code from the .dll\.so files", + #~ executables=[executable] ) + + #~ import modulefinder + #~ import win32com + #~ root = os.path.dirname( sys.executable ) + #~ modulefinder.AddPackagePath("win32com", os.path.join(root, 'Lib', 'site-packages', 'win32com' ) ) + #~ modulefinder.AddPackagePath("win32com", os.path.join(root, 'Lib', 'site-packages', 'win32comext' ) ) + + +from distutils.core import setup +import py2exe +setup( console=["wrap_library.py"] ) +#print py2exe cmd: python freeze.py py2exe This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |