From 37ec42db9344c12a265ca2a5f50737fd34dad1a8 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur <baptiste.lepilleur@gmail.com> Date: Sun, 13 Oct 2013 14:21:51 +0200 Subject: [PATCH] Fallback on file copy on failure to symlink boost. Fixed install error on Windows 7 with Python 3.3 caused by: symlink("boost", bpl_project_boost_inc) OSError: symbolic link privilege not held --- aksetup_helper.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aksetup_helper.py b/aksetup_helper.py index e1d1650e..38906d85 100644 --- a/aksetup_helper.py +++ b/aksetup_helper.py @@ -559,12 +559,11 @@ def set_up_shipped_boost_if_requested(project_name, conf): if not isdir(bpl_project_boost_inc): try: from os import symlink - except ImportError: + symlink("boost", bpl_project_boost_inc) + except (ImportError, OSError): from shutil import copytree print("Copying files, hang on... (do not interrupt)") copytree(main_boost_inc, bpl_project_boost_inc) - else: - symlink("boost", bpl_project_boost_inc) return (source_files, { -- GitLab