Skip to content

Commit b4eee0b

Browse files
committed
Fix imports for Spack v1.0
1 parent 5912382 commit b4eee0b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clingo/install_clingo.py

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env spack-python
22

3-
import archspec.cpu
43
import spack.bootstrap.config
54
import spack.main
5+
import spack.vendor.archspec.cpu
66

77
if __name__ == "__main__":
88
install = spack.main.SpackCommand("install")
@@ -12,4 +12,6 @@
1212
f"Installing clingo-bootstrap with Python: "
1313
f"{spack.bootstrap.config.spec_for_current_python()}"
1414
)
15-
install(f"clingo-bootstrap@spack +optimized ~docs target={archspec.cpu.host().family}")
15+
install(
16+
f"clingo-bootstrap@spack +optimized ~docs target={spack.vendor.archspec.cpu.host().family}"
17+
)

0 commit comments

Comments
 (0)