File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ function cmake_gen() {
147147 -DINFERENCE_DEMO_INSTALL_DIR=${INFERENCE_DEMO_INSTALL_DIR}
148148 -DWITH_ANAKIN=${WITH_ANAKIN:- OFF}
149149 -DPY_VERSION=${PY_VERSION:- 2.7}
150+ -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX:-/ paddle/ build}
150151 ========================================
151152EOF
152153 # Disable UNITTEST_USE_VIRTUALENV in docker because
178179 -DWITH_INFERENCE_API_TEST=${WITH_INFERENCE_API_TEST:- ON} \
179180 -DINFERENCE_DEMO_INSTALL_DIR=${INFERENCE_DEMO_INSTALL_DIR} \
180181 -DWITH_ANAKIN=${WITH_ANAKIN:- OFF} \
181- -DPY_VERSION=${PY_VERSION:- 2.7}
182+ -DPY_VERSION=${PY_VERSION:- 2.7} \
183+ -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX:-/ paddle/ build}
182184
183185}
184186
361363 ctest --output-on-failure
362364 # make install should also be test when unittest
363365 make install -j ` nproc`
364- pip install /usr/local /opt/paddle/share/wheels/* .whl
366+ pip install ${INSTALL_PREFIX :-/ paddle / build} /opt/paddle/share/wheels/* .whl
365367 if [[ ${WITH_FLUID_ONLY:- OFF} == " OFF" ]] ; then
366368 paddle version
367369 fi
You can’t perform that action at this time.
0 commit comments