CFLAGS=\"-iquote ${CMAKE_SOURCE_DIR}/src/include\"
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/setup.py
build --build-base ${CYTHON_MODULE_DIR} --verbose
+ build_ext --cython-c-in-temp --build-temp ${CMAKE_CURRENT_BINARY_DIR} --cython-include-dirs ${PROJECT_SOURCE_DIR}/src/pybind/rados
install \${options} --single-version-externally-managed --record /dev/null
egg_info --egg-base ${CMAKE_CURRENT_BINARY_DIR}
--verbose
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
+from Cython.Distutils import build_ext
+
def get_version():
try:
os.path.join(os.path.dirname(__file__), "..", "rados")]
),
cmdclass={
+ "build_ext": build_ext,
"egg_info": EggInfoCommand,
},
)
if not check_sanity():
sys.exit(1)
+cmdclass = {}
try:
from Cython.Build import cythonize
+ from Cython.Distutils import build_ext
+ cmdclass = {'build_ext': build_ext}
except ImportError:
print("WARNING: Cython is not installed.")
else:
def cythonize(x, **kwargs):
return x
-
-
source = "rados.c"
else:
source = "rados.pyx"
),
url='https://github.com/ceph/ceph/tree/master/src/pybind/rados',
license='LGPLv2+',
+ platforms='Linux',
ext_modules=cythonize(
[
Extension(
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5'
],
+ cmdclass=cmdclass,
)
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
+from Cython.Distutils import build_ext
def get_version():
try:
),
cmdclass={
"egg_info": EggInfoCommand,
+ "build_ext": build_ext,
},
)