Build extensions directly from setup.py
authorJulian Gilbey <jdg@debian.org>
Mon, 5 Sep 2022 20:56:24 +0000 (21:56 +0100)
committerJulian Gilbey <jdg@debian.org>
Mon, 5 Sep 2022 20:56:24 +0000 (21:56 +0100)
Forwarded: https://github.com/fabioz/PyDev.Debugger/issues/160
Last-Update: 2022-06-17

 The original system has two separate setup.py files, and we need
 to run the other one manually, as only one of the two extensions is
 built in setup.py.  This patch moves the extension building into the
 standard setup.py.

Gbp-Pq: Name build_both_extensions.patch

setup.py

index 1dab024918d4c50d919d017e6bb102584344ccf4..215bd94bee4fe05d42769fd53483132ae17682c0 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -152,7 +152,13 @@ try:
                 ["_pydevd_bundle/pydevd_cython.c", ],\r
                 define_macros=[('Py_BUILD_CORE_MODULE', '1')],\r
                 **kwargs\r
-            )\r
+            ),\r
+            Extension(\r
+                '_pydevd_frame_eval.pydevd_frame_evaluator',\r
+                ["_pydevd_frame_eval/pydevd_frame_evaluator.c", ],\r
+                define_macros=[('Py_BUILD_CORE_MODULE', '1')],\r
+                **kwargs\r
+            ),\r
         ]\r
     ))\r
     setup(**args_with_binaries)\r