-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The package's __init__ module exposes the same objects that the module does, so this change is fully backwards compatible in terms of the import logic used by the users. However, it has a few advantages over the previous implementation: * It allows us to organise our source code better * It opens the door to adding typing stub files for our C extension * Opens the door for providing other modules (C or Python) alongside what we currently provide Signed-off-by: Rodrigo Tobar <[email protected]>
- Loading branch information
Showing
14 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include *.h | ||
include LICENSE* | ||
include AUTHORS* | ||
include crc32c/ext/*.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from ._crc32c import big_endian, crc32, crc32c, hardware_based |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,12 @@ | |
from setuptools.command.build_ext import build_ext | ||
|
||
|
||
crcmod_ext = Extension('crc32c', | ||
crcmod_ext = Extension('crc32c._crc32c', | ||
define_macros=[('NDEBUG', None)], | ||
depends=glob.glob('*.h'), | ||
depends=glob.glob('crc32c/ext/*.h'), | ||
language='c', | ||
sources=['_crc32c.c', 'checkarm.c', 'checksse42.c', 'crc32c_adler.c', 'crc32c_arm64.c', 'crc32c_sw.c'], | ||
include_dirs=['.']) | ||
sources=glob.glob('crc32c/ext/*.c'), | ||
include_dirs=['cc32c/ext/']) | ||
|
||
classifiers = [ | ||
# There's no more specific classifier for LGPLv2.1+ | ||
|
@@ -59,6 +59,7 @@ | |
|
||
setup(name='crc32c', | ||
author='The ICRAR DIA Team', | ||
packages=['crc32c'], | ||
url='https://github.com/ICRAR/crc32c', | ||
author_email='[email protected]', | ||
version='2.4.1', | ||
|