Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:NonFree
nmap
zenmap-fix-locale-install.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zenmap-fix-locale-install.patch of Package nmap
From d217ab017e667d536b7d43b8920b8d5700753465 Mon Sep 17 00:00:00 2001 From: Paul Howarth <paul@city-fan.org> Date: Tue, 23 Apr 2024 14:31:18 +0100 Subject: [PATCH] Fix failure to find zenmap translations Installation of translations hasn't worked since the conversion to Python 3 (#2088), and was broken in a different way in the migration from setup.py to pyproject.toml since package data files are not found deep down in directory hierarachies. This should address that (fixes #2718). --- zenmap/MANIFEST.in | 1 + zenmap/pyproject.toml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 zenmap/MANIFEST.in diff --git a/zenmap/MANIFEST.in b/zenmap/MANIFEST.in new file mode 100644 index 0000000000..3fc6b0d2ef --- /dev/null +++ b/zenmap/MANIFEST.in @@ -0,0 +1 @@ +include zenmapCore/data/locale/*/LC_MESSAGES/*.mo diff --git a/zenmap/pyproject.toml b/zenmap/pyproject.toml index 0a2e3f5d78..842f314a5a 100644 --- a/zenmap/pyproject.toml +++ b/zenmap/pyproject.toml @@ -23,12 +23,13 @@ Changelog = "https://nmap.org/changelog" [project.gui-scripts] zenmap = "zenmapGUI.App:run" -[tool.setuptools] -packages = [ +[tool.setuptools.packages.find] +include = [ "zenmapCore", "zenmapCore.data.config", "zenmapCore.data.docs", "zenmapCore.data.locale", +"zenmapCore.data.locale.*.LC_MESSAGES", "zenmapCore.data.misc", "zenmapCore.data.pixmaps", "zenmapCore.data.pixmaps.radialnet", @@ -47,7 +48,6 @@ version = {attr = "zenmapCore.Version.VERSION"} [tool.setuptools.package-data] "zenmapCore.data.pixmaps" = ["*.gif", "*.png"] "zenmapCore.data.pixmaps.radialnet" = ["*.png"] -"zenmapCore.data.locale" = ["*.mo"] "zenmapCore.data.config" = ["zenmap.conf", "scan_profile.usp", "zenmap_version"] "zenmapCore.data.docs" = ["*.html"] "zenmapCore.data.misc" = ["*.xml"]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor