From feee85421764588e68c92e32e34265d209580e05 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 12 Dec 2014 16:31:34 -0800 Subject: [PATCH] don't cleanup egg-info after every setup.py command would cause `setup.py css` or any other command to effectively uninstall a development install. --- setup.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/setup.py b/setup.py index 7bda3e1da..3503a8a9d 100755 --- a/setup.py +++ b/setup.py @@ -83,21 +83,6 @@ from setupext import setupext isfile = os.path.isfile pjoin = os.path.join -#----------------------------------------------------------------------------- -# Function definitions -#----------------------------------------------------------------------------- - -def cleanup(): - """Clean up the junk left around by the build process""" - if "develop" not in sys.argv and "egg_info" not in sys.argv: - try: - shutil.rmtree('ipython.egg-info') - except: - try: - os.unlink('ipython.egg-info') - except: - pass - #------------------------------------------------------------------------------- # Handle OS specific things #------------------------------------------------------------------------------- @@ -343,7 +328,6 @@ setup_args.update(setuptools_extra_args) def main(): setup(**setup_args) - cleanup() if __name__ == '__main__': main()