]> git.pld-linux.org Git - packages/grpc.git/blobdiff - grpc-system-re2.patch
- up to 1.42.0, python2 support is gone
[packages/grpc.git] / grpc-system-re2.patch
diff --git a/grpc-system-re2.patch b/grpc-system-re2.patch
deleted file mode 100644 (file)
index 859e42e..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-diff -urNp -x '*.orig' grpc-1.32.0.org/setup.py grpc-1.32.0/setup.py
---- grpc-1.32.0.org/setup.py   2021-03-04 23:29:29.267406836 +0100
-+++ grpc-1.32.0/setup.py       2021-03-04 23:29:29.490740783 +0100
-@@ -134,6 +134,8 @@ BUILD_WITH_SYSTEM_CARES = os.environ.get
- BUILD_WITH_SYSTEM_ABSL = os.environ.get('GRPC_PYTHON_BUILD_SYSTEM_ABSL', False)
-+BUILD_WITH_SYSTEM_RE2 = os.environ.get('GRPC_PYTHON_BUILD_SYSTEM_RE2', False)
-+
- # For local development use only: This skips building gRPC Core and its
- # dependencies, including protobuf and boringssl. This allows "incremental"
- # compilation by first building gRPC Core using make, then building only the
-@@ -252,6 +254,10 @@ if BUILD_WITH_SYSTEM_ABSL:
-     CORE_C_FILES = filter(lambda x: 'third_party/abseil-cpp' not in x, CORE_C_FILES)
-     ABSL_INCLUDE = (os.path.join('/usr', 'include'),)
-+if BUILD_WITH_SYSTEM_RE2:
-+    CORE_C_FILES = filter(lambda x: 'third_party/re2' not in x, CORE_C_FILES)
-+    RE2_INCLUDE = (os.path.join('/usr', 'include'),)
-+
- EXTENSION_INCLUDE_DIRECTORIES = ((PYTHON_STEM,) + CORE_INCLUDE + ABSL_INCLUDE +
-                                  ADDRESS_SORTING_INCLUDE + CARES_INCLUDE +
-                                  RE2_INCLUDE + SSL_INCLUDE + UPB_INCLUDE +
-@@ -288,6 +294,8 @@ if BUILD_WITH_SYSTEM_ABSL:
-                             'absl_str_format_internal', 'absl_synchronization', 'absl_time',
-                             'absl_civil_time', 'absl_time_zone', 'absl_bad_optional_access',
-                             'absl_bad_variant_access')
-+if BUILD_WITH_SYSTEM_RE2:
-+    EXTENSION_LIBRARIES += ('re2',)
- DEFINE_MACROS = (('_WIN32_WINNT', 0x600),)
- asm_files = []
This page took 0.043343 seconds and 4 git commands to generate.