so the init function offered by rgw python extension is named "initrgw"
instead of "initrgw_file". and "initrgw" is the expected name by python
intepreter when loading an extension.
Signed-off-by: Kefu Chai <kchai@redhat.com>
-distutils_add_cython_module(cython${PYTHON_VERSION}_rgw ${CMAKE_CURRENT_SOURCE_DIR}/rgw_file.pyx)
+distutils_add_cython_module(cython${PYTHON_VERSION}_rgw ${CMAKE_CURRENT_SOURCE_DIR}/rgw.pyx)
add_dependencies(cython${PYTHON_VERSION}_rgw rgw)
distutils_install_cython_module(cython${PYTHON_VERSION}_rgw)
-include rgw_file.pyx
+include rgw.pyx
source = "rgw.c"
else:
- source = "rgw_file.pyx"
+ source = "rgw.pyx"
# Disable cythonification if we're not really building anything
if (len(sys.argv) >= 2 and