Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ def _quote_build_define(argument):
DEFINE_MACROS += (("Py_LIMITED_API", "0x030A00F0"),)
API_TAG = "cp310"


def cython_extensions_and_necessity():
cython_module_files = [
os.path.join(PYTHON_STEM, name.replace(".", "/") + ".pyx")
Expand Down Expand Up @@ -620,9 +621,5 @@ def cython_extensions_and_necessity():
extras_require=EXTRAS_REQUIRES,
setup_requires=SETUP_REQUIRES,
cmdclass=COMMAND_CLASS,
options={
"bdist_wheel": {
"py_limited_api": API_TAG
}
}
options={"bdist_wheel": {"py_limited_api": API_TAG}},
)
7 changes: 2 additions & 5 deletions src/python/grpcio_observability/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def new_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
DEFINE_MACROS += (("Py_LIMITED_API", "0x030A00F0"),)
API_TAG = "cp310"


def extension_modules():
if BUILD_WITH_CYTHON:
cython_module_files = [
Expand Down Expand Up @@ -326,9 +327,5 @@ def extension_modules():
"opentelemetry-api>=1.21.0",
],
cmdclass={"build_ext": BuildExt},
options={
"bdist_wheel": {
"py_limited_api": API_TAG
}
}
options={"bdist_wheel": {"py_limited_api": API_TAG}},
)
6 changes: 1 addition & 5 deletions tools/distrib/python/grpcio_tools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,5 @@ def extension_modules():
cmdclass={
"build_ext": BuildExt,
},
options={
"bdist_wheel": {
"py_limited_api": API_TAG
}
}
options={"bdist_wheel": {"py_limited_api": API_TAG}},
)