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