Skip to content

Commit a5553f3

Browse files
committed
Revert "further cleanup"
This reverts commit 36d10a7.
1 parent 46e7787 commit a5553f3

12 files changed

+25
-0
lines changed

src/rapidfuzz/_feature_detector_cpp.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
# distutils: language=c++
2+
13
from libc.stdint cimport uint32_t
24

5+
36
cdef extern from "FeatureDetector/CpuInfo.hpp":
47
cdef int CPU_FEATURE_SSE2
58
cdef int CPU_FEATURE_AVX2

src/rapidfuzz/cpp_common.pxd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# distutils: language=c++
2+
13
from cpython.object cimport PyObject
24
from cpython.pycapsule cimport PyCapsule_GetPointer, PyCapsule_IsValid, PyCapsule_New
35
from libc.stddef cimport wchar_t

src/rapidfuzz/distance/_initialize_cpp.pxd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# distutils: language=c++
2+
13
from cpp_common cimport RfEditops, RfOpcodes
24
from libcpp cimport bool
35
from libcpp.vector cimport vector

src/rapidfuzz/distance/_initialize_cpp.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# distutils: language=c++
2+
13
from cpp_common cimport EditType, RfEditOp, RfOpcode, convert_string, is_valid_string
24
from cpython.list cimport PyList_New, PyList_SET_ITEM
35
from cpython.pycapsule cimport PyCapsule_GetPointer, PyCapsule_IsValid, PyCapsule_New

src/rapidfuzz/distance/metrics_cpp.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# distutils: language=c++
2+
13
from . import metrics_py
24
from ._initialize_cpp import Editops
35
import sys
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# distutils: language=c++
2+
13
# this is a hack since I could not get this to build in cmake without it
24
include "metrics_cpp.pyx"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# distutils: language=c++
2+
13
# this is a hack since I could not get this to build in cmake without it
24
include "metrics_cpp.pyx"

src/rapidfuzz/fuzz_cpp.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# distutils: language=c++
2+
13
from . import fuzz_py
24
from .distance._initialize_cpp import ScoreAlignment
35

src/rapidfuzz/fuzz_cpp_avx2.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# distutils: language=c++
2+
13
# this is a hack since I could not get this to build in cmake without it
24
include "fuzz_cpp.pyx"

src/rapidfuzz/fuzz_cpp_sse2.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# distutils: language=c++
2+
13
# this is a hack since I could not get this to build in cmake without it
24
include "fuzz_cpp.pyx"

0 commit comments

Comments
 (0)