Merge pull request #231 from JoeGlancy/patch-2

Updated setup.py (workaround for issue 229)
This commit is contained in:
Mattias Andrée [mˈa.tːiː.ˌas ˈanː.drˌeː] 2015-12-27 18:15:43 +00:00
commit 68a96f13b8

View file

@ -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('/')