How to build PyTango v9.3.4 on Debian 12
build with command python3 -m setup build
fails compilation of several c++ files.
By using the following patch compilation is successful. Copy lines to a file named debian.patch
And execute the command:
git apply debian.patch
diff --git a/ext/server/command.cpp b/ext/server/command.cpp
index 48ba468..35c06e7 100644
--- a/ext/server/command.cpp
+++ b/ext/server/command.cpp
@@ -13,9 +13,9 @@
#include "exception.h"
#include "pytgutils.h"
#include "fast_from_py.h"
-#include "server/device_impl.h"
-#include "server/command.h"
+#include "device_impl.h"
+#include "command.h"
#ifndef DISABLE_PYTANGO_NUMPY
# include "to_py_numpy.hpp"
#endif
diff --git a/ext/server/device_class.cpp b/ext/server/device_class.cpp
index b1f9e34..903071f 100644
--- a/ext/server/device_class.cpp
+++ b/ext/server/device_class.cpp
@@ -12,10 +12,10 @@
#include "precompiled_header.hpp"
#include "pytgutils.h"
#include "exception.h"
-#include "server/device_class.h"
-#include "server/attr.h"
Edited by Anton Joubert