mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fix zenmap packaging to include translations
This commit is contained in:
parent
8ef3ed1471
commit
3671ea512f
2 changed files with 6 additions and 25 deletions
|
|
@ -28,7 +28,8 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
|||
|
||||
build() {
|
||||
cd "${NMAP_DIR}/zenmap"
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||
cp "${NMAP_DIR}/ndiff/ndiff.py" .
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
|
|||
|
|
@ -28,35 +28,15 @@ zenmap = "zenmapGUI.App:run"
|
|||
ndiff = "ndiff:run_main"
|
||||
|
||||
[tool.setuptools]
|
||||
packages = [
|
||||
"zenmapCore",
|
||||
"zenmapCore.data.config",
|
||||
"zenmapCore.data.docs",
|
||||
"zenmapCore.data.locale",
|
||||
"zenmapCore.data.misc",
|
||||
"zenmapCore.data.pixmaps",
|
||||
"zenmapCore.data.pixmaps.radialnet",
|
||||
"zenmapGUI",
|
||||
"zenmapGUI.higwidgets",
|
||||
"radialnet",
|
||||
"radialnet.bestwidgets",
|
||||
"radialnet.core",
|
||||
"radialnet.gui",
|
||||
"radialnet.util",
|
||||
]
|
||||
py-modules = ["ndiff"]
|
||||
include-package-data = true
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["zenmapCore", "zenmapGUI", "radialnet"]
|
||||
|
||||
[tool.setuptools.dynamic]
|
||||
version = {attr = "zenmapCore.Version.VERSION"}
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
"zenmapCore.data.pixmaps" = ["*.gif", "*.png"]
|
||||
"zenmapCore.data.pixmaps.radialnet" = ["*.png"]
|
||||
"zenmapCore.data.config" = ["zenmap.conf", "scan_profile.usp", "zenmap_version"]
|
||||
"zenmapCore.data.docs" = ["*.html"]
|
||||
"zenmapCore.data.locale" = ["*/LC_MESSAGES/zenmap.mo"]
|
||||
"zenmapCore.data.misc" = ["*.xml"]
|
||||
|
||||
[tool.setuptools-gettext]
|
||||
source_dir = "zenmapCore/data/locale"
|
||||
build_dir = "zenmapCore/data/locale"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue