summaryrefslogtreecommitdiff
path: root/eventdispatch-python.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-15 11:28:23 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-15 11:28:23 +0000
commiteedd7b9bea4c360c71052ce4cc9b1c30c305f902 (patch)
treee0b9f45159847df6082f2027cbdd6cdfe01acde2 /eventdispatch-python.spec
parent338a0f1d2007ad26adcf969f58564ea2f82c515d (diff)
automatic import of ros-humble-eventdispatch-python
Diffstat (limited to 'eventdispatch-python.spec')
-rw-r--r--eventdispatch-python.spec18
1 files changed, 9 insertions, 9 deletions
diff --git a/eventdispatch-python.spec b/eventdispatch-python.spec
index 3991782..3d0af2e 100644
--- a/eventdispatch-python.spec
+++ b/eventdispatch-python.spec
@@ -32,24 +32,24 @@ python-eventdispatch for ROS2 distribution
%autosetup -n %{RosPkgName}-%{src_version}
%build
-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}
-cd eventdispatch_python
-%{__python3} setup.py build
+# 纯 Python 包,无需编译步骤
%install
-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}
cd eventdispatch_python
%{__python3} -m pip install --no-build-isolation --no-deps \
--prefix /opt/ros/%{ros_distro} \
--root %{buildroot} \
.
+# 确保目标目录存在(pip 可能未创建空的父目录)
+mkdir -p %{buildroot}/opt/ros/%{ros_distro}
%files
-/opt/ros/%{ros_distro}
+%dir /opt/ros/%{ros_distro}
+/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages/eventdispatch/
+/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages/eventdispatch-*.dist-info/
+/opt/ros/%{ros_distro}/lib/eventdispatch_python/
+/opt/ros/%{ros_distro}/share/ament_index/
+/opt/ros/%{ros_distro}/share/eventdispatch_python/
%changelog
* Mon Sep 15 2026 ai-importer <ai-importer@openeuler.org> - 0.2.29-1