[Python-modules-commits] [impacket] 06/10: Don't install samples in /usr/bin and don't install useless stuff in /usr/share/doc/.

Arnaud Fontaine arnau at moszumanska.debian.org
Thu Dec 1 06:44:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

arnau pushed a commit to branch master
in repository impacket.

commit 78ad2bc2dac3fa6bb2409502800de5ea247d3353
Author: Arnaud Fontaine <arnau at debian.org>
Date:   Thu Dec 1 15:12:28 2016 +0900

    Don't install samples in /usr/bin and don't install useless stuff in /usr/share/doc/.
    
    The Debian packaging takes care of installing what we want where we
    want.
    
    Patch-Name: 00_setup.patch
---
 setup.py | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/setup.py b/setup.py
index e100e31..d631bf8 100644
--- a/setup.py
+++ b/setup.py
@@ -20,10 +20,13 @@ setup(name = PACKAGE_NAME,
       long_description = 'Impacket is a collection of Python classes focused on providing access to network packets. Impacket allows Python developers to craft and decode network packets in simple and consistent manner.',
       platforms = ["Unix","Windows"],
       packages = ['impacket', 'impacket.dcerpc', 'impacket.examples', 'impacket.dcerpc.v5', 'impacket.dcerpc.v5.dcom', 'impacket.krb5', 'impacket.ldap', 'impacket.examples.ntlmrelayx', 'impacket.examples.ntlmrelayx.clients', 'impacket.examples.ntlmrelayx.servers', 'impacket.examples.ntlmrelayx.utils'],
-      scripts = glob.glob(os.path.join('examples', '*.py')),
-      data_files = [(os.path.join('share', 'doc', PACKAGE_NAME), ['README.md', 'LICENSE']+glob.glob('doc/*')),
-                    (os.path.join('share', 'doc', PACKAGE_NAME, 'testcases', 'dot11'),glob.glob('impacket/testcases/dot11/*')),
-                    (os.path.join('share', 'doc', PACKAGE_NAME, 'testcases', 'ImpactPacket'),glob.glob('impacket/testcases/ImpactPacket/*')),
-                    (os.path.join('share', 'doc', PACKAGE_NAME, 'testcases', 'SMB_RPC'),glob.glob('impacket/testcases/SMB_RPC/*'))],
-      requires=['pycrypto (>=2.6)', 'pyasn1 (>=0.1.7)'],
+      # Disabled by the Debian packaging, we don't want to pollute
+      # /usr/bin with
+      # samples and documentation with extra LICENSE file or testcases.
+#      scripts = glob.glob(os.path.join('examples', '*.py')),
+#      data_files = [(os.path.join('share', 'doc', PACKAGE_NAME), ['README.md', 'LICENSE']+glob.glob('doc/*')),
+#                    (os.path.join('share', 'doc', PACKAGE_NAME, 'testcases', 'dot11'),glob.glob('impacket/testcases/dot11/*')),
+#                    (os.path.join('share', 'doc', PACKAGE_NAME, 'testcases', 'ImpactPacket'),glob.glob('impacket/testcases/ImpactPacket/*')),
+#                    (os.path.join('share', 'doc', PACKAGE_NAME, 'testcases', 'SMB_RPC'),glob.glob('impacket/testcases/SMB_RPC/*'))],
+      requires=['pycrypto (>=2.6)', 'pyasn1 (>=0.1.7)', 'pcapy']
       )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/impacket.git



More information about the Python-modules-commits mailing list