Corrected Python build.
This commit is contained in:
parent
c59d56d596
commit
7006be5ba1
7 changed files with 18 additions and 16 deletions
|
|
@ -31,7 +31,9 @@
|
|||
|
||||
#include "utils.h"
|
||||
#include "option.h"
|
||||
#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
|
||||
#include "gnucash.h"
|
||||
#endif
|
||||
#include "qif.h"
|
||||
#include "ofx.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include <boost/python/exception_translator.hpp>
|
||||
#include <boost/python/implicit.hpp>
|
||||
#include <boost/python/args.hpp>
|
||||
|
||||
namespace ledger {
|
||||
|
||||
|
|
@ -139,7 +140,7 @@ void export_amount()
|
|||
.def(init<long>())
|
||||
.def(init<std::string>())
|
||||
|
||||
.def("exact", &amount_t::exact, arg("value"),
|
||||
.def("exact", &amount_t::exact, boost::python::arg("value"),
|
||||
"Construct an amount object whose display precision is always equal to its\n\
|
||||
internal precision.")
|
||||
.staticmethod("exact")
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
#include "pyinterp.h"
|
||||
#include "pyutils.h"
|
||||
#include "pyfstream.h"
|
||||
|
||||
#include <boost/python/module.hpp>
|
||||
#include <boost/python/def.hpp>
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@
|
|||
#include <boost/python.hpp>
|
||||
#include <Python.h>
|
||||
|
||||
#include "pyfstream.h"
|
||||
|
||||
namespace ledger {
|
||||
|
||||
class python_interpreter_t : public xml::xpath_t::scope_t
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@
|
|||
#ifndef _PY_UTILS_H
|
||||
#define _PY_UTILS_H
|
||||
|
||||
#include "pyfstream.h"
|
||||
|
||||
template <typename T, typename TfromPy>
|
||||
struct object_from_python
|
||||
{
|
||||
|
|
|
|||
|
|
@ -435,6 +435,8 @@ document_t * document_t::parser_t::parse(std::istream& in)
|
|||
return doc.release();
|
||||
}
|
||||
|
||||
#endif // HAVE_EXPAT || HAVE_XMLPARSE
|
||||
|
||||
node_t * commodity_node_t::children() const
|
||||
{
|
||||
// jww (2007-04-19): Need to report the commodity and its details
|
||||
|
|
@ -558,8 +560,6 @@ node_t * journal_node_t::children() const
|
|||
return parent_node_t::children();
|
||||
}
|
||||
|
||||
#endif // defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
|
||||
|
||||
void output_xml_string(std::ostream& out, const string& str)
|
||||
{
|
||||
for (const char * s = str.c_str(); *s; s++) {
|
||||
|
|
@ -568,7 +568,7 @@ void output_xml_string(std::ostream& out, const string& str)
|
|||
out << "<";
|
||||
break;
|
||||
case '>':
|
||||
out << "&rt;";
|
||||
out << ">";
|
||||
break;
|
||||
case '&':
|
||||
out << "&";
|
||||
|
|
|
|||
18
verify.sh
18
verify.sh
|
|
@ -44,17 +44,17 @@ function build_ledger() {
|
|||
make fullcheck || exit 1
|
||||
}
|
||||
|
||||
#build_distcheck
|
||||
build_distcheck || exit 1
|
||||
|
||||
build_ledger normal
|
||||
build_ledger devel --devel
|
||||
build_ledger python --python
|
||||
build_ledger normal || exit 1
|
||||
build_ledger devel --devel || exit 1
|
||||
build_ledger python --python || exit 1
|
||||
|
||||
build_ledger debug --debug
|
||||
#build_ledger boost_debug --debug --boost d
|
||||
build_ledger debug_python --debug --python
|
||||
build_ledger debug --debug || exit 1
|
||||
#build_ledger boost_debug --debug --boost d || exit 1
|
||||
build_ledger debug_python --debug --python || exit 1
|
||||
|
||||
build_ledger optimized --opt
|
||||
build_ledger opt_python --opt --python
|
||||
build_ledger optimized --opt || exit 1
|
||||
build_ledger opt_python --opt --python || exit 1
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue