From 365dfe6ca8b39b1f6f91793731c07d88652750c1 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Thu, 29 Jul 2021 09:54:20 +0800 Subject: [PATCH] fix build whl bug in win --- MANIFEST.in | 4 ++-- ppstructure/MANIFEST.in | 2 +- ppstructure/__init__.py | 4 ++-- ppstructure/paddlestructure.py | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index cd1c9636..1ca129b1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,7 +2,7 @@ include LICENSE include README.md recursive-include ppocr/utils *.txt utility.py logging.py network.py -recursive-include ppocr/data/ *.py +recursive-include ppocr/data *.py recursive-include ppocr/postprocess *.py recursive-include tools/infer *.py -recursive-include ppocr/utils/e2e_utils/ *.py \ No newline at end of file +recursive-include ppocr/utils/e2e_utils *.py \ No newline at end of file diff --git a/ppstructure/MANIFEST.in b/ppstructure/MANIFEST.in index 2961e722..713e4b06 100644 --- a/ppstructure/MANIFEST.in +++ b/ppstructure/MANIFEST.in @@ -2,7 +2,7 @@ include LICENSE include README.md recursive-include ppocr/utils *.txt utility.py logging.py network.py -recursive-include ppocr/data/ *.py +recursive-include ppocr/data *.py recursive-include ppocr/postprocess *.py recursive-include tools/infer *.py recursive-include ppstructure *.py diff --git a/ppstructure/__init__.py b/ppstructure/__init__.py index 7055bee4..3952b5ff 100644 --- a/ppstructure/__init__.py +++ b/ppstructure/__init__.py @@ -12,6 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from .paddlestructure import PaddleStructure, draw_result, to_excel +from .paddlestructure import PaddleStructure, draw_result, save_res -__all__ = ['PaddleStructure', 'draw_result', 'to_excel'] +__all__ = ['PaddleStructure', 'draw_result', 'save_res'] diff --git a/ppstructure/paddlestructure.py b/ppstructure/paddlestructure.py index d810f230..d0009ae8 100644 --- a/ppstructure/paddlestructure.py +++ b/ppstructure/paddlestructure.py @@ -25,7 +25,6 @@ from pathlib import Path from ppocr.utils.logging import get_logger from ppstructure.predict_system import OCRSystem, save_res -from ppstructure.table.predict_table import to_excel from ppstructure.utility import init_args, draw_result logger = get_logger() -- GitLab