From c4e943c26c1819f7e0db7d0eb5d5b9c207d4430f Mon Sep 17 00:00:00 2001 From: "Yuhao Zhu, PhD, FRM" Date: Sat, 4 Jun 2022 16:40:28 +0200 Subject: [PATCH] =?UTF-8?q?Add=20"clib\=5F=5Finit=5F=5F.py"=20in=20?= =?UTF-8?q?=E2=80=9Cpython\opencc=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit System description: Windows x64. Python version: 3.9. Running "python setup.py build" results in the following error: ``` copying python\opencc\__init__.py -> build\lib.win-amd64-3.9\opencc package directory 'python\opencc\clib' does not exist. ``` This is because the package 'opencc.clib' is imported in 'python\opencc\__init__.py' (Line 6) before the function "build_libopencc()" in 'setup.py' creates the directory "python\opencc\clib" (Line 83). By adding the file "clib\__init__.py" in the directory “python\opencc”, the command "python setup.py build" can successfully build the files. I do not know whether this is also related to the issue that the wheel files cannot be created on PyPI for Windows for the recent versions (>1.1.1) --- python/opencc/clib/__init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 python/opencc/clib/__init__.py diff --git a/python/opencc/clib/__init__.py b/python/opencc/clib/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/python/opencc/clib/__init__.py @@ -0,0 +1 @@ +