summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pointcloud-to-ply.spec4
1 files changed, 3 insertions, 1 deletions
diff --git a/pointcloud-to-ply.spec b/pointcloud-to-ply.spec
index 03af709..4c6c3de 100644
--- a/pointcloud-to-ply.spec
+++ b/pointcloud-to-ply.spec
@@ -26,6 +26,7 @@ BuildRequires: ros-%{ros_distro}-sensor-msgs
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
+BuildRequires: python3-wheel
BuildRequires: python3-numpy
# 所有 ROS 包强制
@@ -50,7 +51,8 @@ Subscribe to a PointCloud2 topic, reconstruct a mesh, and save to OBJ/PLY.
source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true
export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH}
export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
-%{__python3} -m pip wheel --no-deps --no-build-isolation -w dist .
+mkdir -p dist
+%{__python3} setup.py bdist_wheel --dist-dir dist
%install
source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true