Skip to content

Commit 1e121ba

Browse files
SrinidhiSrinidhi
authored andcommitted
Resolve Chakra Setup Issue
1 parent 3109b13 commit 1e121ba

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[build-system]
2-
requires = ["setuptools", "setuptools-grpc"]
2+
requires = [ "setuptools>=61",
3+
"wheel",
4+
"setuptools-grpc",
5+
"grpcio-tools"]
36
build-backend = "setuptools.build_meta"
47

58
[project]
@@ -12,7 +15,7 @@ authors = [
1215
{name = "MLCommons", email = "chakra@mlcommons.org"},
1316
]
1417
dependencies = [
15-
"protobuf",
18+
"protobuf==5.*",
1619
"graphviz",
1720
"networkx",
1821
"pydot",

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from distutils.command.build import build
1+
from setuptools.command.build import build as _build
22

33
from setuptools import setup
44

55

6-
class build_grpc(build):
6+
class custom_build(_build):
77
"""
88
Custom build class to include gRPC build commands.
99
@@ -14,7 +14,7 @@ class build_grpc(build):
1414
sub_commands (list): List of sub-commands to be executed during the build process.
1515
"""
1616

17-
sub_commands = [("build_grpc", None)] + build.sub_commands
17+
sub_commands = [("build_grpc", None)] + _build.sub_commands
1818

1919

20-
setup(cmdclass={"build": build_grpc})
20+
setup(cmdclass={"build": custom_build})

0 commit comments

Comments
 (0)