| 1 |
From: Frank Lin <[email protected]> |
| 2 |
Date: Wed, 15 Jul 2026 06:42:22 +0000 |
| 3 |
Subject: Drop the python console_scripts opencc entry point |
| 4 |
|
| 5 |
Since 1.4.x, setup.py registers a "opencc" console_scripts entry |
| 6 |
point (opencc.cli:main). debian/rules runs the pybuild install step |
| 7 |
after the cmake install step, so this Python wrapper script |
| 8 |
overwrites the compiled C++ /usr/bin/opencc CLI tool installed by |
| 9 |
the opencc binary package, and it lacks a corresponding python3 |
| 10 |
dependency. Drop the entry point; the compiled CLI tool remains the |
| 11 |
one and only /usr/bin/opencc, and the python3-opencc bindings |
| 12 |
(import opencc) are unaffected. |
| 13 |
|
| 14 |
Forwarded: no |
| 15 |
Last-Update: 2026-07-15 |
| 16 |
Index: opencc/setup.py |
| 17 |
=================================================================== |
| 18 |
--- opencc.orig/setup.py |
| 19 |
+++ opencc/setup.py |
| 20 |
@@ -233,11 +233,6 @@ setuptools.setup( |
| 21 |
'bdist_wheel': BDistWheelCommand, |
| 22 |
}, |
| 23 |
setup_requires=setup_requires, |
| 24 |
- entry_points={ |
| 25 |
- 'console_scripts': [ |
| 26 |
- 'opencc=opencc.cli:main', |
| 27 |
- ], |
| 28 |
- }, |
| 29 |
|
| 30 |
classifiers=[ |
| 31 |
'Development Status :: 5 - Production/Stable', |