diff --git a/python/setup.py.in b/python/setup.py.in index 155dd9c58050fcc1650ae4c6412d50f908a8d255..f8170b42abf5ba9d2fc45d742f1ce4f0f505fa76 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -174,7 +174,7 @@ else: package_data['paddle.libs'] += ['openblas' + ext_name] if '${WITH_MKLDNN}' == 'ON': - if '${CMAKE_BUILD_TYPE}' == 'Release' AND os.name != 'nt': + if '${CMAKE_BUILD_TYPE}' == 'Release' and os.name != 'nt': # only change rpath in Release mode. # TODO(typhoonzero): use install_name_tool to patch mkl libs once # we can support mkl on mac.