From 96204c3c3a430787a37c3cb0054e852d4cedbd79 Mon Sep 17 00:00:00 2001 From: Liu Yiqun Date: Tue, 6 Jun 2017 03:22:11 -0700 Subject: [PATCH] Choose to disable the dependency of opencv-python on arm-based platforms. --- python/setup.py.in | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/python/setup.py.in b/python/setup.py.in index 1afaffd2617..93724f91880 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -11,16 +11,19 @@ packages=['paddle', 'paddle.v2.reader', 'paddle.v2.plot'] +setup_requires=["requests", + "numpy", + "protobuf==3.1", + "matplotlib", + "rarfile"] + +if '${CMAKE_SYSTEM_PROCESSOR}' not in ['arm', 'armv7-a', 'aarch64']: + setup_requires+=["opencv-python"] + setup(name='paddle', version='${PADDLE_VERSION}', description='Parallel Distributed Deep Learning', - install_requires=[ - "requests", - "numpy", - "protobuf==${PROTOBUF_VERSION}", - "matplotlib", - "rarfile" - ], + install_requires=setup_requires, packages=packages, package_dir={ '': '${CMAKE_CURRENT_SOURCE_DIR}' -- GitLab