From 292b5fd58848dea6c0d6a2c7fbe1aeb5fd52c47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C4=81vis?= Date: Mon, 3 Aug 2015 18:14:06 +0300 Subject: [PATCH] Fix out of srcdir build --- bindings/python/Makefile.am | 6 +++--- bindings/python/setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index b7e6a9843..c909ac5f7 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -33,15 +33,15 @@ EXTRA_DIST = \ if ENABLE_PYTHON_BINDING all-local: - $(PYTHON) setup.py build + $(PYTHON) $(srcdir)/setup.py build install-exec-local: - $(PYTHON) setup.py install @PYTHON_INSTALL_PARAMS@ + $(PYTHON) $(srcdir)/setup.py install @PYTHON_INSTALL_PARAMS@ uninstall-local: rm -rf $(DESTDIR)$(libdir)/python*/*-packages/*libtorrent* clean-local: - $(PYTHON) setup.py clean --all + $(PYTHON) $(srcdir)/setup.py clean --all endif diff --git a/bindings/python/setup.py b/bindings/python/setup.py index deef53586..b3b808b6d 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -92,7 +92,7 @@ if '--bjam' in sys.argv or ldflags == None or extra_cmd == None: else: source_list = os.listdir(os.path.join(os.path.dirname(__file__), "src")) - source_list = [os.path.join("src", s) for s in source_list if s.endswith(".cpp")] + source_list = [os.path.abspath(os.path.join(os.path.dirname(__file__), "src", s)) for s in source_list if s.endswith(".cpp")] ext = [Extension('libtorrent', sources = source_list,