Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move cstringdist to stringdist.cstringdist #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# default to the C99 standard (some of the included C code uses C99 syntax)
c_directory = 'stringdist/cstringdist/'
cstringdist = Extension(
'cstringdist',
'stringdist.cstringdist',
sources=[
c_directory + 'cstringdist.c',
c_directory + 'levenshtein.c',
Expand Down
2 changes: 1 addition & 1 deletion stringdist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# the Python implementation as needed. This allows library users to import from
# stringdist without worrying about which implementation was selected
try:
from cstringdist import (levenshtein, levenshtein_norm, rdlevenshtein,
from .cstringdist import (levenshtein, levenshtein_norm, rdlevenshtein,
rdlevenshtein_norm)
except ImportError:
from .pystringdist import (levenshtein, levenshtein_norm, rdlevenshtein,
Expand Down
2 changes: 1 addition & 1 deletion stringdist/cstringdist/cstringdist.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static PyMethodDef methods[] = {
// Create PyModuleDef struct, which outlines the desired C extension module
static struct PyModuleDef cstringdist = {
PyModuleDef_HEAD_INIT,
"cstringdist",
"stringdist.cstringdist",
"Calculates several different string distance metrics",
-1,
methods,
Expand Down