File: 0011-Support-PCL-1.13-and-later.patch

package info (click to toggle)
python-pcl 0.3.0~rc1%2Bdfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,828 kB
  • sloc: python: 3,094; cpp: 283; makefile: 181; sh: 24; ansic: 12
file content (43 lines) | stat: -rw-r--r-- 1,674 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Fri, 6 Jan 2023 09:11:35 +0100
Subject: Support PCL 1.13 and later

---
 setup.py | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/setup.py b/setup.py
index 6c8d7c5..3c6bed5 100644
--- a/setup.py
+++ b/setup.py
@@ -515,11 +515,7 @@ else:
         if subprocess.call(['pkg-config', 'pcl_common%s' % pcl_version]) == 0:
             break
     else:
-        print("%s: error: cannot find PCL, tried" %
-              sys.argv[0], file=sys.stderr)
-        for version in PCL_SUPPORTED:
-            print('    pkg-config pcl_common%s' % version, file=sys.stderr)
-        sys.exit(1)
+        pcl_version = ""
 
     # Find build/link options for PCL using pkg-config.
     pcl_libs = ["common", "features", "filters", "io", "kdtree", "octree",
@@ -616,16 +612,13 @@ else:
                   # debug
                   # gdb_debug=True,
                   ]
-    elif pcl_version == '-1.10' or pcl_version == '-1.11' or pcl_version == '-1.12':
+    else:
         module = [Extension("pcl._pcl", ["pcl/_pcl_180.pyx", "pcl/minipcl.cpp", "pcl/ProjectInliers.cpp"], language="c++", **ext_args),
                   Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", extra_compile_args=['-fno-strict-aliasing'], **ext_args),
                   # Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
                   # debug
                   # gdb_debug=True,
                   ]
-    else:
-        print('no pcl install or pkg-config missed.')
-        sys.exit(1)
 
 
 setup(name='python-pcl',