From 0b1a8a833496c62d29edd4270430a5fc59e58468 Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Wed, 15 Mar 2023 17:35:24 +0800 Subject: [PATCH] Add option for setup.py (#51443) * add option for setup.py * add option for setup.py * add option for setup.py * add option for setup.py * add ennv_dict.py and dist/ to .gitignore * add ennv_dict.py and dist/ to .gitignore * modify .gitignore --- .gitignore | 1 + CMakeLists.txt | 1 + python/env_dict.py.in | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f48df37881d..32860f4c28e 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ paddle/fluid/prim/api/generated_prim/*.h *.DS_Store *.vs build/ +dist/ build_doc/ *.user *.tmp diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cdaa25a2f8..0e75b9df915 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,7 @@ option(WITH_ASCEND_CL "Compile PaddlePaddle with ASCEND CL" ${WITH_ASCEND}) option(WITH_ASCEND_CXX11 "Compile PaddlePaddle with ASCEND and CXX11 ABI" OFF) option(WITH_ONNXRUNTIME "Compile PaddlePaddle with ONNXRUNTIME" OFF) option(WITH_CUSPARSELT "Compile PaddlePaddle with CUSPARSELT" OFF) +option(WITH_SETUP_INSTALL "Compile PaddlePaddle with setup.py" OFF) # Note(zhouwei): It use option above, so put here include(init) include(generic) # simplify cmake module diff --git a/python/env_dict.py.in b/python/env_dict.py.in index ade6b5610e1..f37f16a86a6 100644 --- a/python/env_dict.py.in +++ b/python/env_dict.py.in @@ -73,5 +73,6 @@ env_dict={ 'JIT_RELEASE_WHL':'@JIT_RELEASE_WHL@', 'WITH_PSLIB':'@WITH_PSLIB@', 'PYBIND_INCLUDE_DIR':'@PYBIND_INCLUDE_DIR@', - 'WITH_XDNN_API':'@WITH_XDNN_API@' + 'WITH_XDNN_API':'@WITH_XDNN_API@', + 'WITH_PYTHON':'@WITH_PYTHON@' } -- GitLab