File tree Expand file tree Collapse file tree 1 file changed +1
-35
lines changed
paddle/fluid/operators/generator Expand file tree Collapse file tree 1 file changed +1
-35
lines changed Original file line number Diff line number Diff line change @@ -52,50 +52,16 @@ function(install_py_jinja2)
5252 OUTPUT_VARIABLE _jinja2_version
5353 ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
5454
55- if (${PYTHON_VERSION_STRING} VERSION_LESS "3.6.2" )
56- if (NOT _jinja2_version VERSION_LESS "2.11.3" )
57- execute_process (COMMAND ${PYTHON_EXECUTABLE} -m pip install -U
58- jinja2==2.11.3)
59- endif ()
60- return ()
61- endif ()
62-
6355 if (_jinja2_version)
6456 return ()
6557 endif ()
6658 endif ()
6759
68- if (${PYTHON_VERSION_STRING} VERSION_LESS "3.6.2" )
69- execute_process (COMMAND ${PYTHON_EXECUTABLE} -m pip install -U
70- jinja2==2.11.3)
71- else ()
72- execute_process (COMMAND ${PYTHON_EXECUTABLE} -m pip install -U jinja2)
73- endif ()
74- endfunction ()
75-
76- function (install_py_typing_extensions)
77- if (${PYTHON_VERSION_STRING} VERSION_LESS "3.6.2" )
78- execute_process (COMMAND ${PYTHON_EXECUTABLE} -m pip install -U
79- typing-extensions>=4.1.1)
80- return ()
81- endif ()
82-
83- execute_process (
84- COMMAND
85- ${PYTHON_EXECUTABLE} "-c"
86- "import re, typing_extensions; print(re.compile('/__init__.py.*').sub('',typing_extensions.__file__))"
87- RESULT_VARIABLE _te_status
88- ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
89-
90- if (NOT _te_status EQUAL 0)
91- execute_process (COMMAND ${PYTHON_EXECUTABLE} -m pip install -U
92- typing-extensions)
93- endif ()
60+ execute_process (COMMAND ${PYTHON_EXECUTABLE} -m pip install -U jinja2)
9461endfunction ()
9562
9663install_py_pyyaml()
9764install_py_jinja2()
98- install_py_typing_extensions()
9965
10066# parse ops
10167set (parsed_op_dir
You can’t perform that action at this time.
0 commit comments