From 18ad088bda0d8961e04d7083068f542b3349aed4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 20 Jan 2019 04:22:43 -0500 Subject: [PATCH] build: preserve symlinks when installing Without this, python's default behavior was to dereference the mathjax symlinks and install the file contents instead. --- setup/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/install.py b/setup/install.py index 71fce72459..827cc26da6 100644 --- a/setup/install.py +++ b/setup/install.py @@ -259,7 +259,7 @@ class Install(Develop): if os.path.exists(dest): shutil.rmtree(dest) self.info('Installing resources to', dest) - shutil.copytree(self.RESOURCES, dest) + shutil.copytree(self.RESOURCES, dest, symlinks=True) self.manifest.append(dest) def success(self):