Skip to content
Snippets Groups Projects

setup-base-dir: also add a symlink to poulpe directly

Merged Pierre-Yves David requested to merge topic/default/more-setup into branch/default
2 files
+ 13
6
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 10
4
@@ -27,6 +27,7 @@
]
SUITE_DIR = "suites"
TOOLING = "tooling"
def install_poulpe():
@@ -134,7 +135,11 @@
install_poulpe()
setup_quick_access(base_path)
print("Create symlinks to development Poulpe for suites")
source = (POULPE_DIR / SUITE_DIR).resolve()
os.symlink(source, SUITE_DIR)
print("Create symlinks to Poulpe")
tooling = Path(TOOLING)
tooling.mkdir()
local_poulpe = tooling / "poulpe"
os.symlink(POULPE_DIR.resolve(), local_poulpe)
os.symlink(local_poulpe / SUITE_DIR, SUITE_DIR)
bench = base_path / BENCHMARK_DIR
@@ -140,5 +145,6 @@
bench = base_path / BENCHMARK_DIR
for p in glob.glob(str(base_path / 'suites' / '*' / 'benchmarks')):
bench_glob = local_poulpe.absolute() / SUITE_DIR / '*' / 'benchmarks'
for p in glob.glob(str(bench_glob)):
b = Path(p).relative_to(base_path)
suite_name = b.name
os.symlink('..' / b, bench / suite_name)
Loading