Skip to content

Commit 60519e8

Browse files
committed
ifcopenshell dev_environment - include all packages
1 parent 8fb454b commit 60519e8

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/ifcopenshell-python/scripts/dev_environment.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,18 @@
1717
assert REPO_PATH_SRC.exists(), f"'{REPO_PATH_SRC}' doesn't exist."
1818

1919
packages = {
20+
"bcf": REPO_PATH_SRC / "bcf" / "bcf",
21+
"bsdd.py": REPO_PATH_SRC / "bsdd" / "bsdd.py",
22+
"ifc4d": REPO_PATH_SRC / "ifc4d" / "ifc4d",
23+
"ifc5d": REPO_PATH_SRC / "ifc5d" / "ifc5d",
24+
"ifccityjson": REPO_PATH_SRC / "ifccityjson" / "ifccityjson",
25+
"ifcclash": REPO_PATH_SRC / "ifcclash" / "ifcclash",
26+
"ifccsv.py": REPO_PATH_SRC / "ifccsv" / "ifccsv.py",
27+
"ifcdiff.py": REPO_PATH_SRC / "ifcdiff" / "ifcdiff.py",
28+
"ifcfm": REPO_PATH_SRC / "ifcfm" / "ifcfm",
2029
"ifcopenshell": REPO_PATH_SRC / "ifcopenshell-python" / "ifcopenshell",
2130
"ifcpatch": REPO_PATH_SRC / "ifcpatch" / "ifcpatch",
31+
"ifctester": REPO_PATH_SRC / "ifctester" / "ifctester",
2232
}
2333

2434

@@ -35,10 +45,12 @@
3545
continue
3646
package_path.unlink()
3747
if package_path.exists():
38-
# I guess it's a directory.
39-
shutil.rmtree(package_path)
48+
if package_path.is_dir():
49+
shutil.rmtree(package_path)
50+
else:
51+
package_path.unlink()
4052
print(f"Symlinking {package_path} -> {repo_package_path}")
41-
package_path.symlink_to(repo_package_path, True)
53+
package_path.symlink_to(repo_package_path, target_is_directory=repo_package_path.is_dir())
4254

4355

4456
PACKAGE_PATH = SITE / "ifcopenshell"

0 commit comments

Comments
 (0)