Skip to content
Snippets Groups Projects
Commit 114d7772 authored by Guido Günther's avatar Guido Günther
Browse files

Remove unused python files

We split out libvirt-python ages ago
parent de9dcf9b
Branches upstream
Tags upstream/0.4.1
No related merge requests found
usr/lib/python*/*/*.so
usr/lib/python*/*/*.py
# Build python modules for all known python versions
include /usr/share/python/python.mk
ifeq (,$(py_sitename))
py_libdir_sh = $$(_py_=$(strip $(1)); python$${_py_\#python*} -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
endif
PY_DIR := $(DEB_BUILDDIR)/python
PYDEFAULTVER := $(shell pyversions --version --default)
PYVERSIONS := $(shell pyversions --version --installed)
otherpy = \
set -e; for v in $(PYVERSIONS); do \
$(RM) $(PY_DIR); \
ln -sf $(PY_DIR)$$v $(PY_DIR); \
$(MAKE) \
-C $(PY_DIR) \
pyexecdir=$(call py_libdir_sh, $$v) \
PYTHON=python$$v \
PYTHON_VERSION=$$v \
PYTHON_INCLUDES=-I/usr/include/python$$v \
$1; \
$(RM) $(PY_DIR); \
done; \
ln -sf $(PY_DIR)$(PYDEFAULTVER) $(PY_DIR)
configure::
set -e; for v in $(PYVERSIONS); do \
cp -la $(PY_DIR) $(PY_DIR)$$v; \
done
$(RM) -r $(PY_DIR)
ln -sf $(PY_DIR)$(PYDEFAULTVER) $(PY_DIR)
build::
$(call otherpy, all)
install::
$(call otherpy, install DESTDIR=$(CURDIR)/debian/tmp)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment