summaryrefslogtreecommitdiffstats
path: root/build-root
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2017-03-08 12:02:24 +0100
committerOle Troan <ot@cisco.com>2017-03-15 21:43:30 +0100
commit3cc4971882235a539bc6177e8e4b4d92129b3a12 (patch)
treec850b1ea3348da7cd632e782008fbe4e3c6b4c87 /build-root
parent9d676afbb779da5186cb3869925ef6d7d3d04db1 (diff)
Python API: Change from cPython to CFFI.
Change-Id: I03e52466fb3f909ae52b8fba601168f3eadbd972 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'build-root')
-rw-r--r--build-root/rpm/vpp.spec12
1 files changed, 3 insertions, 9 deletions
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec
index 7bc18ca4e8f..7fa97888f54 100644
--- a/build-root/rpm/vpp.spec
+++ b/build-root/rpm/vpp.spec
@@ -162,8 +162,8 @@ do
done
# Python bindings
-mkdir -p -m755 %{buildroot}%{python2_sitelib}
-install -p -m 666 %{_mu_build_dir}/%{_vpp_install_dir}/*/lib/python2.7/site-packages/vpp_papi-*.egg %{buildroot}%{python2_sitelib}
+cd %{_mu_build_dir}/../src/vpp-api/python
+%py2_install
#
# devel
@@ -226,15 +226,9 @@ done
sysctl --system
%systemd_post vpp.service
-%post api-python
-easy_install -z %{python2_sitelib}/vpp_papi-*.egg
-
%preun
%systemd_preun vpp.service
-%preun api-python
-easy_install -mxNq vpp_papi
-
%postun
%systemd_postun
@@ -285,7 +279,7 @@ fi
%files api-python
%defattr(644,root,root)
-%{python2_sitelib}/vpp_papi-*.egg
+%{python2_sitelib}/*
%files devel
%defattr(-,bin,bin)