Skip to content

Commit d1e9232

Browse files
author
Matt Fox
committed
Various packaging updates and bugfixes
1 parent 38f62cd commit d1e9232

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.so
22
build/
33
dist/
4+
MANIFEST

MANIFEST

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
CHANGES.txt
22
LICENSE.txt
3-
README.txt
3+
README.rst
4+
netfilterqueue.c
5+
netfilterqueue.pxd
46
netfilterqueue.pyx
57
setup.py

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ From PyPI
3232

3333
To install from PyPI by pip::
3434

35-
pip install netfilterqueue
35+
pip install NetfilterQueue
3636

3737
From source
3838
-----------
3939

4040
To 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

4747
Setup will use Cython if it is installed, regenerating the .c source from the .pyx before compiling the .so.

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@
55
try:
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
)
1314
except 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

2223
setup(
23-
cmdclass = {"build_ext": build_ext},
24+
cmdclass = cmd,
2425
ext_modules = [ext],
2526
name="NetfilterQueue",
2627
version=VERSION,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy