[C++-sig] Pyste generating empty file
Niall Douglas
s_sourceforge at nedprod.com
Fri Sep 12 20:09:03 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ok, back to Boost.Python development again. First off, the improved
code for invoking GCCXML I see hasn't been added:
...
# call gccxml
cmd = 'gccxml %s %s %s -fxml=%s' % (includes, defines,
filename, xmlfile)
sys.stdout.write(cmd+"\n")
childinh,childh=os.popen4(cmd)
wasoutúlse
while 1:
line=childh.readline()
if not line: break
sys.stderr.write(" "+line)
wasout=True
if wasout or not os.path.isfile(xmlfile):
raise CppParserError, 'Error executing gccxml'
#status = os.system(cmd)
#if status!=0:
# raise CppParserError, 'Error executing gccxml'
# parse the resulting xml
...
If you use this code, you don't get the annoying cmd box popping up
on Windows. Furthermore, you don't lose the error messages output by
GCCXML. Lastly, pyste is still putting backslashes in its paths
though it's a lot better than before - the above code ensures all
forward slashes.
Next problem: I feed pyste this:
Include('convFXString.h')
Include('../include/fx.h')
cclass=AllFromHeader('../include/FXMessageBox.h')
... and all I get is:
// Includes
===================================================================#include <boost/python.hpp>
#include <convFXString.h>
#include <../include/fx.h>
// Using
=====================================================================using namespace boost::python;
// Module
=====================================================================void Export_TnFOX_pythonbinds_FXMessageBox()
{
}
What has changed? I also notice that the new command line options and
the commands you can use in the pyste are not in the docs.
Cheers,
Niall
- --
PGP secure address: securened at nedprod.com, PGP key id: 0xC518A6CF
- --
PGP secure address: securened at nedprod.com, PGP key id: 0xC518A6CF
-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2
iQA/AwUBP2ILwMEcvDLFGKbPEQJpRQCeO4u6VjKqYTMb44L1ShEoDyXnmPMAoPba
uQFrg/OTozh6UIWnIogAfSb7
=OpRP
-----END PGP SIGNATURE-----
More information about the Cplusplus-sig
mailing list