nnstreamer_python3 package include python3 helper functiom.
Change it to use by converter and decoder.
Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
/usr/lib/nnstreamer/filters/libnnstreamer_filter_python3.so
-/usr/lib/nnstreamer/filters/nnstreamer_python3.so
+/usr/lib/nnstreamer/extra/nnstreamer_python3.so
-/usr/lib/nnstreamer/filters/nnstreamer_python3.so /usr/lib/python3/dist-packages/nnstreamer_python.so
+/usr/lib/nnstreamer/extra/nnstreamer_python3.so /usr/lib/python3/dist-packages/nnstreamer_python.so
warning('gRPC/Flatbuf is not supported')
endif
endif
+
+if have_python3
+ nnstreamer_python3_deps = [python3_dep, libdl_dep, glib_dep, gst_dep, nnstreamer_dep]
+
+ shared_library('nnstreamer_python3',
+ 'nnstreamer_python3_helper.c',
+ name_prefix: '',
+ dependencies: nnstreamer_python3_deps,
+ install: true,
+ install_dir: extra_install_dir
+ )
+endif
nnstreamer_filter_python3_sources += join_paths(meson.current_source_dir(), s)
endforeach
- nnstreamer_filter_python3_deps = [python3_dep, libdl_dep, glib_dep, gst_dep, nnstreamer_dep]
-
- shared_library('nnstreamer_python3',
- 'tensor_filter_python3_helper.c',
- name_prefix: '',
- dependencies: nnstreamer_filter_python3_deps,
- install: true,
- install_dir: filter_subplugin_install_dir
- )
-
shared_library('nnstreamer_filter_python3',
nnstreamer_filter_python3_sources,
- dependencies: nnstreamer_filter_python3_deps,
+ dependencies: nnstreamer_python3_deps,
install: true,
install_dir: filter_subplugin_install_dir
)
static_library('nnstreamer_filter_python3',
nnstreamer_filter_python3_sources,
- dependencies: nnstreamer_filter_python3_deps,
+ dependencies: nnstreamer_python3_deps,
install: true,
install_dir: nnstreamer_libdir
)
decoder_subplugin_install_dir = join_paths(subplugin_install_prefix, 'decoders')
customfilter_install_dir = join_paths(subplugin_install_prefix, 'customfilters')
converter_subplugin_install_dir = join_paths(subplugin_install_prefix, 'converters')
+extra_install_dir = join_paths(subplugin_install_prefix, 'extra')
unittest_base_dir = join_paths(nnstreamer_bindir, 'unittest-nnstreamer')
# Set default configuration
%if 0%{?python3_support}
mkdir -p %{buildroot}%{python3_sitelib}
pushd %{buildroot}%{python3_sitelib}
-ln -sf %{_prefix}/lib/nnstreamer/filters/nnstreamer_python3.so nnstreamer_python.so
+ln -sf %{_prefix}/lib/nnstreamer/extra/nnstreamer_python3.so nnstreamer_python.so
popd
%endif
%manifest nnstreamer.manifest
%defattr(-,root,root,-)
%{_prefix}/lib/nnstreamer/filters/libnnstreamer_filter_python3.so
-%{_prefix}/lib/nnstreamer/filters/nnstreamer_python3.so
+%{_prefix}/lib/nnstreamer/extra/nnstreamer_python3.so
%{python3_sitelib}/nnstreamer_python.so
%endif
TEST_PYTHONPATH=$(pwd)
export PYTHONPATH=${TEST_PYTHONPATH}
if [[ ! -f ${TEST_PYTHONPATH}/nnstreamer_python.so ]]; then
- ln -sf ../nnstreamer_${PY}.so nnstreamer_python.so
+ ln -sf ../../extra/nnstreamer_${PY}.so nnstreamer_python.so
fi
popd
popd
endif
if have_python3
- extensions += [['python3', 'python3', nnstreamer_filter_python3_deps, 'passthrough.py', 'python3-get']]
- extensions += [['python3', 'python3', nnstreamer_filter_python3_deps, 'scaler.py', 'python3-set']]
+ extensions += [['python3', 'python3', nnstreamer_python3_deps, 'passthrough.py', 'python3-get']]
+ extensions += [['python3', 'python3', nnstreamer_python3_deps, 'scaler.py', 'python3-set']]
endif
sed_command = find_program('sed', required: true)
filter_ext_common_testenv.set('NNSTREAMER_CONVERTERS', path_nns_plugin_converters)
filter_ext_common_testenv.set('NNSTREAMER_SOURCE_ROOT_PATH', meson.source_root())
- if ext[0] == 'python2'
- py2_module_path = join_paths(meson.build_root(), 'tests/' + ext[0] + '_module')
- run_command('rm', '-rf', py2_module_path, check : true)
- run_command('mkdir', '-p', py2_module_path, check : true)
- run_command('ln', '-sf',
- join_paths(meson.build_root(), 'ext/nnstreamer/tensor_filter/nnstreamer_python2.' + so_ext),
- py2_module_path + '/nnstreamer_python.so', check : true)
- filter_ext_common_testenv.set('PYTHONPATH', py2_module_path)
- elif ext[0] == 'python3'
+ if ext[0] == 'python3'
py3_module_path = join_paths(meson.build_root(), 'tests/' + ext[0] + '_module')
run_command('rm', '-rf', py3_module_path, check : true)
run_command('mkdir', '-p', py3_module_path, check : true)
run_command('ln', '-sf',
- join_paths(meson.build_root(), 'ext/nnstreamer/tensor_filter/nnstreamer_python3.' + so_ext),
+ join_paths(meson.build_root(), 'ext/nnstreamer/extra/nnstreamer_python3.' + so_ext),
py3_module_path + '/nnstreamer_python.so', check : true)
filter_ext_common_testenv.set('PYTHONPATH', py3_module_path)
endif
# Covert to an absolute path from the relative path
export PYTHONPATH=$(pwd)
if [[ ! -f ./nnstreamer_python.so ]]; then
- ln -s ../nnstreamer_${FRAMEWORK}.so nnstreamer_python.so
+ ln -s ../../extra/nnstreamer_${FRAMEWORK}.so nnstreamer_python.so
fi
popd
popd