build: preserve symlinks when installing

Without this, python's default behavior was to dereference the mathjax
symlinks and install the file contents instead.
This commit is contained in:
Eli Schwartz 2019-01-20 04:22:43 -05:00
parent 3f1cc2725a
commit 18ad088bda

View File

@ -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):