From 43f3ac598b2c063ec1b3715d8c076712c1209d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org> Date: Sun, 27 Mar 2011 16:31:09 +0200 Subject: [PATCH] add py_builddir macro --- debian/changelog | 7 +++++++ debian/python.mk | 3 +++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index 84e15ef..0ed1815 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-defaults (2.6.6-14) UNRELEASED; urgency=low + + * python.mk: add py_builddir macro. + $(call py_builddir, 2.6) returns "build/lib.linux-x86_64-2.6" on amd64 + + -- Piotr Ożarowski <piotr@debian.org> Sun, 27 Mar 2011 16:29:05 +0200 + python-defaults (2.6.6-13) experimental; urgency=low * Add python2.7 as a supported Python version. diff --git a/debian/python.mk b/debian/python.mk index 65ad1cb..c3137a3 100644 --- a/debian/python.mk +++ b/debian/python.mk @@ -39,3 +39,6 @@ py_libdir_sh = $$(_py_=$(strip $(1)); python$${_py_\#python*} -c 'from distutils # Arguments to pass to setup.py install py_setup_install_args = --install-layout=deb + +# distutils' build directory +py_builddir = $(shell python$(strip $(1)) -c "from distutils.command.build import build; from distutils.core import Distribution; b = build(Distribution()); b.finalize_options(); print(b.build_platlib)") -- GitLab