Skip to content

Commit

Permalink
Windows build fixes for PIP packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Feb 1, 2025
1 parent 70e7cbd commit 6b657c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def pre_build(self):
if sys.platform == 'win32':
# Build slice2cpp and slice2py required to generate the C++ and Python sources included in the pip source dist
msbuild_args = f"/p:Configuration={configuration} /p:Platform={platform}"
solution_path = "../cpp/msbuild/ice.sln"
os.system(f"MSBuild /m {solution_path} {msbuild_args} /t:slice2cpp;slice2py")
os.system(f"MSBuild /m ../cpp/msbuild/ice.proj {msbuild_args} /t:NuGetRestore")
os.system(f"MSBuild /m ../cpp/msbuild/ice.sln {msbuild_args} /t:slice2cpp;slice2py")
# Build the SliceCompile target to generate the Ice, IceDiscovery, and IceLocatorDiscovery
# sources included in the pip source dist
for project in ["Ice", "IceDiscovery", "IceLocatorDiscovery"]:
Expand Down

0 comments on commit 6b657c1

Please sign in to comment.