File tree 4 files changed +10
-6
lines changed
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
* .so
2
2
build /
3
3
dist /
4
+ MANIFEST
Original file line number Diff line number Diff line change 1
1
CHANGES.txt
2
2
LICENSE.txt
3
- README.txt
3
+ README.rst
4
+ netfilterqueue.c
5
+ netfilterqueue.pxd
4
6
netfilterqueue.pyx
5
7
setup.py
Original file line number Diff line number Diff line change @@ -32,16 +32,16 @@ From PyPI
32
32
33
33
To install from PyPI by pip::
34
34
35
- pip install netfilterqueue
35
+ pip install NetfilterQueue
36
36
37
37
From source
38
38
-----------
39
39
40
40
To install from source::
41
41
42
42
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
45
45
python setup.py install
46
46
47
47
Setup 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 5
5
try :
6
6
# Use Cython
7
7
from Cython .Distutils import build_ext
8
+ cmd = {"build_ext" : build_ext }
8
9
ext = Extension (
9
10
"netfilterqueue" ,
10
11
sources = ["netfilterqueue.pyx" ,],
11
12
libraries = ["netfilter_queue" ],
12
13
)
13
14
except ImportError :
14
15
# No Cython
15
- build_ext = None
16
+ cmd = {}
16
17
ext = Extension (
17
18
"netfilterqueue" ,
18
19
sources = ["netfilterqueue.c" ],
19
20
libraries = ["netfilter_queue" ],
20
21
)
21
22
22
23
setup (
23
- cmdclass = { "build_ext" : build_ext } ,
24
+ cmdclass = cmd ,
24
25
ext_modules = [ext ],
25
26
name = "NetfilterQueue" ,
26
27
version = VERSION ,
You can’t perform that action at this time.
0 commit comments