Skip to content
Snippets Groups Projects
Commit 37ec42db authored by Baptiste Lepilleur's avatar Baptiste Lepilleur
Browse files

Fallback on file copy on failure to symlink boost. Fixed install error on...

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
parent db95f76b
No related branches found
No related tags found
No related merge requests found
......@@ -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,
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment