diff --git a/setup.py b/setup.py index b5a476d..183d341 100755 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ pjoin = os.path.join def cleanup(): """Clean up the junk left around by the build process""" - if "develop" not in sys.argv: + if "develop" not in sys.argv and "egg_info" not in sys.argv: try: shutil.rmtree('ipython.egg-info') except: