]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: rename rgw_file.pyx to rgw.pyx
authorKefu Chai <kchai@redhat.com>
Wed, 9 Nov 2016 11:08:29 +0000 (19:08 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 9 Nov 2016 13:07:25 +0000 (21:07 +0800)
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>
src/pybind/rgw/CMakeLists.txt
src/pybind/rgw/MANIFEST.in
src/pybind/rgw/setup.py

index 33213edcbd5f9674250cd8222c4d568b6f02849b..da2cdcdf87f31a3006f4dc34c833ac006c7a9122 100644 (file)
@@ -1,3 +1,3 @@
-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)
index c95228fcdb31a529dfcd0271f1db966bcc09b5c0..330f3fd198511e9f60656d38a868960cd71d22f5 100644 (file)
@@ -1 +1 @@
-include rgw_file.pyx
+include rgw.pyx
index 72bace4f0be39c6fbb654bd2e79907546729feae..f14f30c89660331cea556fe6f40ecfd0956730f3 100755 (executable)
@@ -146,7 +146,7 @@ except ImportError:
 
         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