Fixed the ugliest debian python installation
[elliptics.git] / debian / rules
blobfbb48bb99ae60008d6df84247b85233444be42ab
1 #!/usr/bin/make -f
3 include /usr/share/cdbs/1/rules/debhelper.mk
4 include /usr/share/cdbs/1/class/cmake.mk
6 DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_BUILD_TYPE=RelWithDebInfo
8 DEB_DH_STRIP_ARGS := --dbg-package=elliptics-dbg
9 DEB_DH_MAKESHLIBS_ARGS_elliptics := -V "elliptics (>= $(shell head -n1 debian/changelog | sed -e 's/.*[(]//' | sed -e 's/[)].*//' | tr -d '\n' | cut -d . -f 1-3))"
10 DEB_DH_MAKESHLIBS_ARGS_elliptics-client := -V "elliptics-client (>= $(shell head -n1 debian/changelog | sed -e 's/.*[(]//' | sed -e 's/[)].*//' | tr -d '\n' | cut -d . -f 1-3))"
11 DEB_COMPRESS_EXCLUDE := .conf
13 DEB_PYTHON_SYSTEM := pycentral
15 DEB_PYTHON_SETUP_CMD = $(DEB_BUILDDIR)/bindings/python/setup.py
16 DEB_PYTHON_INSTALL_ARGS_ALL = --install-layout=deb --install-lib=`python -c "from distutils import sysconfig; print sysconfig.get_python_lib(),"`
17 include /usr/share/cdbs/1/class/python-distutils.mk
19 DEB_PYTHON_MODULE_PACKAGES := elliptics-client
20 include /usr/share/cdbs/1/class/python-module.mk
22 binary-install/elliptics-client::
23 cp bindings/python/*.py $(DEB_BUILDDIR)/bindings/python/
25 binary-post-install/elliptics-client::
26 rm debian/elliptics-client/usr/bin/dnet_ioserv