summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-11-17 13:08:51 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-11-17 13:08:51 +0200
commit06e74afb7d4d253392ab3067f0985f4e69162088 (patch)
treeef37ab1861dba395277eebbf92ec9e63593cf513
parent6b29ff539a77b056ef23ff5a269199dc8885f323 (diff)
windows: Create relative symbolic link by using the destination directory as cwd
-rw-r--r--cerbero/bootstrap/windows.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cerbero/bootstrap/windows.py b/cerbero/bootstrap/windows.py
index 0295646b..a99b961b 100644
--- a/cerbero/bootstrap/windows.py
+++ b/cerbero/bootstrap/windows.py
@@ -118,12 +118,11 @@ class WindowsBootstrapper(BootstrapperBase):
(temp, self.version, python_headers))
shell.call('cp -f %s/windows-external-sdk/python27/%s/lib/* %s' %
(temp, self.version, python_libs))
- pydll = '%s/lib/python.dll' % self.prefix
try:
- os.remove(pydll)
+ os.remove('%s/lib/python.dll' % self.prefix)
except:
pass
- shell.call('ln -s python27.dll %s' % (pydll))
+ shell.call('ln -s python27.dll python.dll', '%s/lib' % self.prefix)
shutil.rmtree(tmp_dir)
def install_mingwget_deps(self):