Home page logo

nmap-dev logo Nmap Development mailing list archives

[Ndiff][patch] Install Ndiff as a module
From: Daniel Miller <bonsaiviking () gmail com>
Date: Thu, 12 May 2011 15:58:42 -0500


I have been using Ndiff as a Python module for its excellent Nmap XML parsing, as suggested to me by David (http://seclists.org/nmap-dev/2010/q4/768). To support this use, as well as others (like a script I'm working on to generate Nmap command-lines from diffs), I propose the following patch, which installs Ndiff as a module as well as a script:

Index: ndiff/setup.py
--- ndiff/setup.py    (revision 23153)
+++ ndiff/setup.py    (working copy)
@@ -29,5 +29,6 @@
+ "Installing your distribution's python-dev package may solve this problem.")

 distutils.core.setup(name = u"ndiff", scripts = [u"ndiff"],
+    py_modules = [u"ndiff"],
     data_files = [(u"share/man/man1", [u"docs/ndiff.1"])],
cmdclass = {"install_egg_info": null_command, "install": checked_install})

This would help me out a lot for writing portable Nmap-related scripts, and I'm sure it would help others as well.

Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
  • [Ndiff][patch] Install Ndiff as a module Daniel Miller (May 12)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]