-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fill out setup.py, update README for installing from github.
- Loading branch information
1 parent
3c5c5f5
commit 2707601
Showing
2 changed files
with
31 additions
and
10 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 |
---|---|---|
|
@@ -5,15 +5,28 @@ | |
from Cython.Build import cythonize | ||
|
||
|
||
# TODO | ||
# if Cython present: | ||
# build indexed_gzip.pyx | ||
# | ||
# else: | ||
# build pre-generated indexed_gzip.c | ||
# | ||
import indexed_gzip as igzip | ||
|
||
setup( | ||
name='indexed_gzip', | ||
version=str(igzip.__version__), | ||
author='Paul McCarthy', | ||
author_email='[email protected]', | ||
description='Fast random access of gzip files in Python', | ||
url='https://github.com/pauldmccarthy/indexed_gzip', | ||
license='zlib', | ||
|
||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: zlib/libpng License', | ||
'Programming Language :: C', | ||
'Programming Language :: Cython', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 3', | ||
'Topic :: System :: Archiving :: Compression', | ||
], | ||
|
||
ext_modules=cythonize([ | ||
Extension('indexed_gzip', | ||
['indexed_gzip.pyx', 'zran.c'], | ||
|
@@ -26,6 +39,7 @@ | |
include_dirs=['.'], | ||
extra_compile_args=['-Wno-unused-function']) | ||
]), | ||
|
||
setup_requires=['pytest-runner'], | ||
tests_require=['pytest', 'numpy'], | ||
test_suite='tests', | ||
|