Skip to content

Commit bc9e409

Browse files
msimacektimfel
authored andcommitted
Add patch for grpcio
1 parent 6668701 commit bc9e409

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
new file mode 100644
3+
index 0000000..9175509
4+
--- /dev/null
5+
+++ b/pyproject.toml
6+
@@ -0,0 +1,3 @@
7+
+[build-system]
8+
+requires = ["setuptools >= 40.6.0", "wheel", "Cython"]
9+
+build-backend = "setuptools.build_meta:__legacy__"
10+
diff --git a/setup.py b/setup.py
11+
index 8da207b..6d5a38b 100644
12+
--- a/setup.py
13+
+++ b/setup.py
14+
@@ -131,7 +131,7 @@ BUILD_OVERRIDE_BORING_SSL_ASM_PLATFORM = os.environ.get(
15+
# to have been generated by building first *with* Cython support. Even if this
16+
# is set to false, if the script detects that the generated `.c` file isn't
17+
# present, then it will still attempt to use Cython.
18+
-BUILD_WITH_CYTHON = _env_bool_value('GRPC_PYTHON_BUILD_WITH_CYTHON', 'False')
19+
+BUILD_WITH_CYTHON = _env_bool_value('GRPC_PYTHON_BUILD_WITH_CYTHON', 'True')
20+
21+
# Export this variable to use the system installation of openssl. You need to
22+
# have the header files installed (in /usr/include/openssl) and during
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[rules]]
2+
# Force re-cythonize
3+
patch = 'grpcio.patch'

0 commit comments

Comments
 (0)