From 1790a1cf2d0539d485a2fc6d828cfe62671b9dc6 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 18 Feb 2010 18:23:36 +0000 Subject: [PATCH] add an additional check to ensure that the libtorrent folder has files in it --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 046faf7fc..9b81eb741 100644 --- a/setup.py +++ b/setup.py @@ -213,7 +213,7 @@ except ImportError: else: build_libtorrent = False -if build_libtorrent and os.path.exists("libtorrent"): +if build_libtorrent and os.path.exists("libtorrent") and os.listdir("libtorrent"): # There isn't a system libtorrent library, so let's build the one included with deluge libtorrent = Extension( 'libtorrent',