Skip to content

Commit

Permalink
Fix Python package release after migration to Conan 2
Browse files Browse the repository at this point in the history
Add separate Conan install step.
  • Loading branch information
vsbogd committed Jul 29, 2024
1 parent 90f45fd commit 70615c4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ def _build_with_cmake(self, ext: CMakeExtension) -> None:
build_temp.mkdir(parents=True)

subprocess.run(
["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True
["conan", "install", ext.sourcedir, "--output-folder=.",
"--build=missing"], cwd=build_temp, check=True
)
subprocess.run(
["cmake", ext.sourcedir,
"-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake", *cmake_args],
cwd=build_temp, check=True
)
subprocess.run(
["cmake", "--build", ".", *build_args], cwd=build_temp, check=True
Expand Down

0 comments on commit 70615c4

Please sign in to comment.