Commit 71e4ea52 by Stéphane Graber

Merge pull request #1036 from GreatFruitOmsk/python-setuptools

python-lxc: fix breakage caused by the switch to setuptools
parents b4b75e16 0e586abd
...@@ -6,18 +6,15 @@ else ...@@ -6,18 +6,15 @@ else
DISTSETUPOPTS= DISTSETUPOPTS=
endif endif
INSTALL_OPTS := install --prefix=$(prefix) --no-compile $(DISTSETUPOPTS) CALL_SETUP_PY := cd @srcdir@ && $(PYTHON) setup.py build -b @abs_builddir@/build egg_info -e @abs_builddir@
CALL_SETUP_PY := cd @srcdir@ && $(PYTHON) setup.py build -b @abs_builddir@/build
all: all:
$(CALL_SETUP_PY) build_ext -I @abs_top_srcdir@/src -L @abs_top_builddir@/src/lxc --no-pkg-config $(CALL_SETUP_PY) build_ext -I @abs_top_srcdir@/src -L @abs_top_builddir@/src/lxc --no-pkg-config
DESTDIR = / # default
install: install:
if [ -z "$(DESTDIR)" ]; then \ $(CALL_SETUP_PY) install --prefix=$(prefix) --no-compile $(DISTSETUPOPTS) --root=$(DESTDIR)
$(CALL_SETUP_PY) $(INSTALL_OPTS); \
else \
$(CALL_SETUP_PY) $(INSTALL_OPTS) --root=$(DESTDIR); \
fi
clean-local: clean-local:
rm -rf @builddir@/build rm -rf @builddir@/build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment