diff options
author | Andrew Resch <andrewresch@gmail.com> | 2008-12-10 10:00:21 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2008-12-10 10:00:21 +0000 |
commit | 808758cd16f22b4eab9e4ada2246e50ef735f9c9 (patch) | |
tree | 1cfe93bb06accd7d2e7249128fd7636bd7c5ddb5 | |
parent | 983440ab2080d2e9c0386f3dc20e0d3bd523983d (diff) | |
download | deluge-808758cd16f22b4eab9e4ada2246e50ef735f9c9.tar.gz deluge-808758cd16f22b4eab9e4ada2246e50ef735f9c9.tar.bz2 deluge-808758cd16f22b4eab9e4ada2246e50ef735f9c9.zip |
Fix file removal
-rw-r--r-- | setup.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -27,8 +27,6 @@ import glob from setuptools import setup, find_packages, Extension from distutils import cmd, sysconfig from distutils.command.build import build as _build -from distutils.command.install import install as _install -from distutils.command.install_data import install_data as _install_data from distutils.command.clean import clean as _clean import msgfmt @@ -168,11 +166,14 @@ _sources = glob.glob("./libtorrent/src/*.cpp") + \ # Remove some files from the source that aren't needed _source_removals = ["mapped_storage.cpp", "memdebug.cpp"] - +to_remove = [] for source in _sources: for rem in _source_removals: if rem in source: - _sources.remove(source) + to_remove.append(source) + +for rem in to_remove: + _sources.remove(rem) _ext_modules = [] |