-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ceph#6768 from marcan/cython
pybind: port the rbd bindings to Cython Reviewed-by: Josh Durgin <[email protected]> Reviewed-by: Nathan Cutler <[email protected]> Reviewed-by: Ken Dreyer <[email protected]> Reviewed-by: Alfredo Deza <[email protected]>
- Loading branch information
Showing
14 changed files
with
1,600 additions
and
1,277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
usr/lib/python*/dist-packages/rbd.py* | ||
usr/lib/python*/dist-packages/rbd.so | ||
usr/lib/python*/dist-packages/rbd-*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Makefile | |
/.git_version | ||
/.libs | ||
/acconfig.h* | ||
/build | ||
/ceph | ||
/cephfs | ||
/crushtool | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
EXTRA_DIST += $(srcdir)/pybind/setup.py $(srcdir)/pybind/rbd.pyx | ||
|
||
if ENABLE_CLIENT | ||
if WITH_RADOS | ||
if WITH_RBD | ||
if WITH_CYTHON | ||
|
||
PY_DISTUTILS = \ | ||
CPPFLAGS="-iquote \${abs_srcdir}/include ${AM_CPPFLAGS} ${CPPFLAGS}" \ | ||
CFLAGS="-iquote \${abs_srcdir}/include ${AM_CFLAGS} ${CFLAGS}" \ | ||
LDFLAGS="-L\${abs_builddir}/.libs $(subst -pie,,${AM_LDFLAGS}) ${LDFLAGS}" \ | ||
CYTHON_BUILD_DIR="$(shell readlink -f $(builddir))/build" \ | ||
${PYTHON} ./setup.py | ||
|
||
pybind-all: librbd.la ${srcdir}/ceph_ver.h | ||
cd $(srcdir)/pybind; $(PY_DISTUTILS) build \ | ||
--build-base $(shell readlink -f $(builddir))/build \ | ||
--verbose | ||
|
||
pybind-clean: ${srcdir}/ceph_ver.h | ||
cd $(srcdir)/pybind; $(PY_DISTUTILS) clean \ | ||
--build-base $(shell readlink -f $(builddir))/build \ | ||
--verbose | ||
|
||
pybind-install-exec: ${srcdir}/ceph_ver.h | ||
if test "$(DESTDIR)" ; then \ | ||
if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ | ||
options=--install-layout=deb ; \ | ||
else \ | ||
options=--prefix=/usr ; \ | ||
fi ; \ | ||
root="--root=$(DESTDIR)" ; \ | ||
else \ | ||
options=--prefix=$(prefix) ; \ | ||
fi ; \ | ||
cd $(srcdir)/pybind; $(PY_DISTUTILS) build \ | ||
--build-base $(shell readlink -f $(builddir))/build \ | ||
install \ | ||
$$options $$root \ | ||
--single-version-externally-managed \ | ||
--record /dev/null \ | ||
--verbose | ||
|
||
LOCAL_ALL += pybind-all | ||
LOCAL_CLEAN += pybind-clean | ||
LOCAL_INSTALLEXEC += pybind-install-exec | ||
|
||
endif | ||
endif | ||
endif | ||
endif |
Oops, something went wrong.