Show More
@@ -72,6 +72,7 b' from setupbase import (' | |||
|
72 | 72 | install_symlinked, |
|
73 | 73 | install_lib_symlink, |
|
74 | 74 | install_scripts_for_symlink, |
|
75 | unsymlink, | |
|
75 | 76 | ) |
|
76 | 77 | from setupext import setupext |
|
77 | 78 | |
@@ -237,6 +238,7 b" setup_args['cmdclass'] = {" | |||
|
237 | 238 | 'symlink': install_symlinked, |
|
238 | 239 | 'install_lib_symlink': install_lib_symlink, |
|
239 | 240 | 'install_scripts_sym': install_scripts_for_symlink, |
|
241 | 'unsymlink': unsymlink, | |
|
240 | 242 | 'jsversion' : JavascriptVersion, |
|
241 | 243 | } |
|
242 | 244 |
@@ -383,6 +383,15 b' class install_lib_symlink(Command):' | |||
|
383 | 383 | print('symlinking %s -> %s' % (pkg, dest)) |
|
384 | 384 | os.symlink(pkg, dest) |
|
385 | 385 | |
|
386 | class unsymlink(install): | |
|
387 | def run(self): | |
|
388 | dest = os.path.join(self.install_lib, 'IPython') | |
|
389 | if os.path.islink(dest): | |
|
390 | print('removing symlink at %s' % dest) | |
|
391 | os.unlink(dest) | |
|
392 | else: | |
|
393 | print('No symlink exists at %s' % dest) | |
|
394 | ||
|
386 | 395 | class install_symlinked(install): |
|
387 | 396 | def run(self): |
|
388 | 397 | if sys.platform == 'win32': |
General Comments 0
You need to be logged in to leave comments.
Login now