diff --git a/build.py b/build.py index a60d9710..32edf753 100755 --- a/build.py +++ b/build.py @@ -1817,7 +1817,8 @@ class Builder(object): cleanup = True for dep in os.scandir(self.deps_path): - Builder.symlink_directory(dep.path, self.prefix_path, cleanup) + if dep.is_dir(): + Builder.symlink_directory(dep.path, self.prefix_path, cleanup) # Do symlink cleanup only once cleanup = False