diff --git a/setup.py b/setup.py index 6edd7495..843b0a84 100755 --- a/setup.py +++ b/setup.py @@ -922,7 +922,11 @@ class Setup(): if target.startswith('./') or target.startswith('../'): os.symlink(target, dest) elif '/' not in target: - os.symlink('./' + target, dest) + try: + os.symlink('./' + target, dest) + except OSError as e: + if e.errno != 17: + raise else: targets = target.split('/') dests = dest.split('/')