summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus F.X.J. Oberhumer <markus@oberhumer.com>2001-12-01 13:56:18 +0000
committerMarkus F.X.J. Oberhumer <markus@oberhumer.com>2001-12-01 13:56:18 +0000
commitebe90b3d5231b2abb9829944fbddf0964b4fae81 (patch)
tree4e0f4245cc7ea2d0f151bb39d035e4aaa04a5117
parentf970970b33e79f1d8cacf73f81cab5ee0b12c0ab (diff)
downloadpycurl-ebe90b3d5231b2abb9829944fbddf0964b4fae81.tar.gz
Do not remove entries from a list while iterating over it.
-rw-r--r--ChangeLog5
-rw-r--r--setup.py4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 06e9015..5a5261e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-01 Markus F.X.J. Oberhumer <mfx>
+
+ * setup.py: Do not remove entries from a list while iterating
+ over it.
+
2001-11-29 Kjetil Jacobsen <kjetilja>
* Added code in setup.py to install on Windows. Requires some
diff --git a/setup.py b/setup.py
index 57c2cae..ac7e988 100644
--- a/setup.py
+++ b/setup.py
@@ -27,12 +27,12 @@ if sys.platform == "win32":
else:
include_dirs = []
cflags=split(strip(os.popen('curl-config --cflags').read()), ' ')
- for e in cflags:
+ for e in cflags[:]:
if e[:2] == '-I':
include_dirs.append(e[2:])
library_dirs = []
libs = split(strip(os.popen('curl-config --libs').read()), ' ')
- for e in libs:
+ for e in libs[:]:
if e[:2] == '-L':
library_dirs.append(e[2:])
libs.remove(e)