diff options
author | Markus F.X.J. Oberhumer <markus@oberhumer.com> | 2001-12-01 13:56:18 +0000 |
---|---|---|
committer | Markus F.X.J. Oberhumer <markus@oberhumer.com> | 2001-12-01 13:56:18 +0000 |
commit | ebe90b3d5231b2abb9829944fbddf0964b4fae81 (patch) | |
tree | 4e0f4245cc7ea2d0f151bb39d035e4aaa04a5117 | |
parent | f970970b33e79f1d8cacf73f81cab5ee0b12c0ab (diff) | |
download | pycurl-ebe90b3d5231b2abb9829944fbddf0964b4fae81.tar.gz |
Do not remove entries from a list while iterating over it.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | setup.py | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -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 @@ -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) |