diff --git a/setupbase.py b/setupbase.py index 219b1cb..6426d7b 100644 --- a/setupbase.py +++ b/setupbase.py @@ -381,7 +381,8 @@ class install_lib_symlink(Command): try: os.symlink(pkg, dest) except OSError as e: - if e.errno == errno.EEXIST and os.path.islink(dest): + if e.errno == errno.EEXIST and os.path.islink(dest) \ + and os.path.realpath(dest) == pkg: print('Symlink already exists') else: raise