Skip to content

Commit 687ee2c

Browse files
committed
Check that target exists before symlinking
1 parent 6506112 commit 687ee2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def install_data_file(env_path: pathlib.Path, file: EnvFile) -> None:
144144

145145
def install_site_file(site_packages_path: pathlib.Path, file: EnvFile) -> None:
146146
site_path = site_packages_path / file.site_packages_path
147-
if not site_path.exists():
147+
if not site_path.exists() and file.path.exists():
148148
site_path.parent.mkdir(parents=True, exist_ok=True)
149149
site_path.symlink_to(file.path.resolve())
150150

0 commit comments

Comments
 (0)