mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fixing conda builds by removing unneeded python args (#7384)
This commit is contained in:
committed by
GitHub
parent
3913e9ead3
commit
dc3252730e
@ -18,8 +18,6 @@ set -ex
|
||||
|
||||
echo "Installing caffe2 to ${PREFIX}"
|
||||
|
||||
python_args="$(python ./scripts/get_python_cmake_flags.py)"
|
||||
|
||||
# Install under specified prefix
|
||||
cmake_args=()
|
||||
cmake_args+=("-DCMAKE_INSTALL_PREFIX=$PREFIX")
|
||||
@ -28,7 +26,7 @@ cmake_args+=("-DCMAKE_PREFIX_PATH=$PREFIX")
|
||||
# Build Caffe2
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake "${cmake_args[@]}" "$python_args" $CAFFE2_CMAKE_ARGS ..
|
||||
cmake "${cmake_args[@]}" $CAFFE2_CMAKE_ARGS ..
|
||||
if [ "$(uname)" == 'Darwin' ]; then
|
||||
make "-j$(sysctl -n hw.ncpu)"
|
||||
else
|
||||
|
@ -51,13 +51,12 @@ fi
|
||||
###########################################################
|
||||
# Build Caffe2
|
||||
###########################################################
|
||||
python_args="$(python ./scripts/get_python_cmake_flags.py)"
|
||||
cmake_args=()
|
||||
cmake_args+=("-DCMAKE_INSTALL_PREFIX=$PREFIX")
|
||||
|
||||
# Build Caffe2
|
||||
mkdir -p caffe2_build && pushd caffe2_build
|
||||
cmake "${cmake_args[@]}" "$python_args" $CAFFE2_CMAKE_ARGS ..
|
||||
cmake "${cmake_args[@]}" $CAFFE2_CMAKE_ARGS ..
|
||||
if [ "$(uname)" == 'Darwin' ]; then
|
||||
make "-j$(sysctl -n hw.ncpu)"
|
||||
else
|
||||
|
Reference in New Issue
Block a user