Fix out of srcdir build

This commit is contained in:
Dāvis 2015-08-03 18:14:06 +03:00
parent e0c3d28321
commit 292b5fd588
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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,