Skip to content

Commit

Permalink
Add missing init file for cybin module (#256)
Browse files Browse the repository at this point in the history
* Add missing init file for cybin module

* rename cybin extension name

* fix import in cybin.pyx
  • Loading branch information
aisk authored Jun 9, 2024
1 parent c3d7dc4 commit a3db325
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
libraries=libraries))
ext_modules.append(Extension("thriftpy2.transport.sasl.cysasl",
["thriftpy2/transport/sasl/cysasl.c"]))
ext_modules.append(Extension("thriftpy2.protocol.cybin",
ext_modules.append(Extension("thriftpy2.protocol.cybin.cybin",
["thriftpy2/protocol/cybin/cybin.c"],
libraries=libraries))

Expand Down
1 change: 1 addition & 0 deletions thriftpy2/protocol/cybin/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .cybin import *
3 changes: 1 addition & 2 deletions thriftpy2/protocol/cybin/cybin.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ from cpython cimport bool

import six

from thriftpy2.thrift import TDecodeException
from thriftpy2.transport.cybase cimport CyTransportBase, STACK_STRING_LEN

from ..thrift import TDecodeException

cdef extern from "endian_port.h":
int16_t htobe16(int16_t n)
int32_t htobe32(int32_t n)
Expand Down

0 comments on commit a3db325

Please sign in to comment.