aboutsummaryrefslogtreecommitdiffstats
path: root/common/handle_error.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/handle_error.cc')
-rw-r--r--common/handle_error.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/handle_error.cc b/common/handle_error.cc
index 7076c188..a091f07e 100644
--- a/common/handle_error.cc
+++ b/common/handle_error.cc
@@ -1,3 +1,5 @@
+#ifndef NO_PYTHON
+
#include <Python.h>
#include <boost/python.hpp>
#include "nextpnr.h"
@@ -61,3 +63,5 @@ std::string parse_python_exception()
}
NEXTPNR_NAMESPACE_END
+
+#endif // NO_PYTHON \ No newline at end of file