Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 898734
Collapse All | Expand All

(-)a/CMakeLists.txt (-5 lines)
Lines 215-226 Link Here
215
# Look for Python. We prefer some variant of python 3 if the system has it.
215
# Look for Python. We prefer some variant of python 3 if the system has it.
216
FIND_PACKAGE(PythonInterp 3 QUIET)
216
FIND_PACKAGE(PythonInterp 3 QUIET)
217
if (PythonInterp_FOUND)
217
if (PythonInterp_FOUND)
218
  # pyverbs can only use python3:
219
  if (NO_PYVERBS)
220
    set(CYTHON_EXECUTABLE "")
218
    set(CYTHON_EXECUTABLE "")
221
  else()
222
    FIND_PACKAGE(cython)
223
  endif()
224
else()
219
else()
225
  # But we still must have python (be it 2) for the build process:
220
  # But we still must have python (be it 2) for the build process:
226
  FIND_PACKAGE(PythonInterp REQUIRED)
221
  FIND_PACKAGE(PythonInterp REQUIRED)
(-)a/pyverbs/pd.pyx (-2 / +2 lines)
Lines 152-158 Link Here
152
152
153
153
154
cdef void *pd_alloc(v.ibv_pd *pd, void *pd_context, size_t size,
154
cdef void *pd_alloc(v.ibv_pd *pd, void *pd_context, size_t size,
155
                  size_t alignment, v.uint64_t resource_type):
155
                  size_t alignment, v.uint64_t resource_type) noexcept:
156
    """
156
    """
157
    Parent Domain allocator wrapper. This function is used to wrap a
157
    Parent Domain allocator wrapper. This function is used to wrap a
158
    user-defined Python alloc function which should be a part of pd_context.
158
    user-defined Python alloc function which should be a part of pd_context.
Lines 174-180 Link Here
174
174
175
175
176
cdef void pd_free(v.ibv_pd *pd, void *pd_context, void *ptr,
176
cdef void pd_free(v.ibv_pd *pd, void *pd_context, void *ptr,
177
                     v.uint64_t resource_type):
177
                     v.uint64_t resource_type) noexcept:
178
    """
178
    """
179
    Parent Domain deallocator wrapper. This function is used to wrap a
179
    Parent Domain deallocator wrapper. This function is used to wrap a
180
    user-defined Python free function which should be part of pd_context.
180
    user-defined Python free function which should be part of pd_context.

Return to bug 898734