mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Ndiff: use Zenmap's Version.py
This commit is contained in:
parent
d206004146
commit
f024e40189
3 changed files with 10 additions and 2 deletions
|
|
@ -256,6 +256,7 @@ clean-zenmap:
|
|||
rm -f $(ZENMAPDIR)/zenmapCore/Name.pyc
|
||||
|
||||
clean-ndiff:
|
||||
rm -f $(NDIFFDIR)/Version.pyc
|
||||
|
||||
clean-nping:
|
||||
-cd $(NPINGDIR) && $(MAKE) clean
|
||||
|
|
@ -366,7 +367,10 @@ install-zenmap: $(ZENMAPDIR)/pyproject.toml
|
|||
# Create a symlink from xnmap to zenmap unconditionally.
|
||||
ln -sf zenmap $(DESTDIR)$(bindir)/xnmap
|
||||
|
||||
build-ndiff:
|
||||
$(NDIFFDIR)/Version.py: $(ZENMAPDIR)/zenmapCore/Version.py
|
||||
cp $^ $@
|
||||
|
||||
build-ndiff: $(NDIFFDIR)/pyproject.toml $(NDIFFDIR)/Version.py
|
||||
$(PYTHON) -m build $(NDIFFDIR)/
|
||||
|
||||
build-nping: $(NPINGDIR)/Makefile build-nbase build-nsock build-netutil $(NPINGDIR)/nping.h @DNET_BUILD@ @PCAP_BUILD@
|
||||
|
|
|
|||
1
ndiff/Version.py
Normal file
1
ndiff/Version.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
VERSION = "7.97"
|
||||
|
|
@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|||
[project]
|
||||
name = "ndiff"
|
||||
license = {text = "Nmap License (https://nmap.org/book/man-legal.html)"}
|
||||
version = "7.96"
|
||||
dynamic = ["version"]
|
||||
authors = [{name = "The Nmap Project"}]
|
||||
description = "Nmap scan diff tool"
|
||||
readme = {file = "README", content-type = "text/plain"}
|
||||
|
|
@ -23,5 +23,8 @@ ndiff = "ndiff:run_main"
|
|||
[tool.setuptools]
|
||||
py-modules = ["ndiff"]
|
||||
|
||||
[tool.setuptools.dynamic]
|
||||
version = {attr = "Version.VERSION"}
|
||||
|
||||
#[tool.setuptools.packages.find]
|
||||
#include = ["ndiff"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue