From f005a5d869adc1c400974b8e863369448ae4a07a Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 3 Feb 2008 05:37:10 +0000 Subject: [PATCH] remove file.cpp in win --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6c38f6e82..a07100832 100644 --- a/setup.py +++ b/setup.py @@ -163,7 +163,12 @@ _sources = glob.glob("./libtorrent/src/*.cpp") + \ glob.glob("./libtorrent/bindings/python/src/*.cpp") # Remove file_win.cpp if not on windows -if not windows_check(): +if windows_check(): + for source in _sources: + if "file.cpp" in source: + _sources.remove(source) + break +else: for source in _sources: if "file_win.cpp" in source: _sources.remove(source)