mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Merge pull request #7205 from minrk/master
don't cleanup egg-info after every setup.py command
This commit is contained in:
commit
df1eb9bea2
16
setup.py
16
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()
|
||||
|
Loading…
Reference in New Issue
Block a user