File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11* .so
22build /
33dist /
4+ MANIFEST
Original file line number Diff line number Diff line change 11CHANGES.txt
22LICENSE.txt
3- README.txt
3+ README.rst
4+ netfilterqueue.c
5+ netfilterqueue.pxd
46netfilterqueue.pyx
57setup.py
Original file line number Diff line number Diff line change @@ -32,16 +32,16 @@ From PyPI
3232
3333To install from PyPI by pip::
3434
35- pip install netfilterqueue
35+ pip install NetfilterQueue
3636
3737From source
3838-----------
3939
4040To install from source::
4141
4242 wget http://pypi.python.org/packages/source/N/NetfilterQueue/NetfilterQueue-0.1.tar.gz
43- tar -xvzf netfilterqueue -0.1.tar.gz
44- cd netfilterqueue -0.1
43+ tar -xvzf NetfilterQueue -0.1.tar.gz
44+ cd NetfilterQueue -0.1
4545 python setup.py install
4646
4747Setup will use Cython if it is installed, regenerating the .c source from the .pyx before compiling the .so.
Original file line number Diff line number Diff line change 55try :
66 # Use Cython
77 from Cython .Distutils import build_ext
8+ cmd = {"build_ext" : build_ext }
89 ext = Extension (
910 "netfilterqueue" ,
1011 sources = ["netfilterqueue.pyx" ,],
1112 libraries = ["netfilter_queue" ],
1213 )
1314except ImportError :
1415 # No Cython
15- build_ext = None
16+ cmd = {}
1617 ext = Extension (
1718 "netfilterqueue" ,
1819 sources = ["netfilterqueue.c" ],
1920 libraries = ["netfilter_queue" ],
2021 )
2122
2223setup (
23- cmdclass = { "build_ext" : build_ext } ,
24+ cmdclass = cmd ,
2425 ext_modules = [ext ],
2526 name = "NetfilterQueue" ,
2627 version = VERSION ,
You can’t perform that action at this time.
0 commit comments