Skip to content

Commit 0c62973

Browse files
committed
Update
1 parent ceea62b commit 0c62973

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hatch_build.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ def initialize(self, version: str, build_data: dict[str, Any]) -> None:
2929
else:
3030
build_packages = "-b missing"
3131

32-
assert os.system(f"conan install . -u {build_packages} -of build") == 0, "Conan install failed"
32+
assert os.system(f"conan install . -u {build_packages} -of build --format json --out-file graph.json") == 0, (
33+
"Conan install failed"
34+
)
3335

3436
if "CONAN_UPLOAD_OSP" in os.environ:
3537
print("Uploading packages..")
36-
os.system("conan graph info . --format=json > graph.json")
3738
os.system("conan list --graph=graph.json --format=json > pkglist.json")
3839
os.system("conan upload --confirm --list=pkglist.json --remote osp")
3940

0 commit comments

Comments
 (0)