mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[CD] Install ninja and setuptools from PyPI (#145871)
Rather than Conda Pull Request resolved: https://github.com/pytorch/pytorch/pull/145871 Approved by: https://github.com/Skylion007 ghstack dependencies: #145870
This commit is contained in:
parent
c26bb9ba5b
commit
eea7d395e5
|
|
@ -184,11 +184,11 @@ tmp_env_name="wheel_py$python_nodot"
|
||||||
conda create ${EXTRA_CONDA_INSTALL_FLAGS} -yn "$tmp_env_name" python="$desired_python" ${CONDA_ENV_CREATE_FLAGS}
|
conda create ${EXTRA_CONDA_INSTALL_FLAGS} -yn "$tmp_env_name" python="$desired_python" ${CONDA_ENV_CREATE_FLAGS}
|
||||||
source activate "$tmp_env_name"
|
source activate "$tmp_env_name"
|
||||||
|
|
||||||
pip install "numpy=${NUMPY_PINNED_VERSION}" "pyyaml${PYYAML_PINNED_VERSION}" requests
|
pip install "numpy=${NUMPY_PINNED_VERSION}" "pyyaml${PYYAML_PINNED_VERSION}" requests ninja "setuptools${SETUPTOOLS_PINNED_VERSION}" typing_extensions
|
||||||
retry pip install -r "${pytorch_rootdir}/requirements.txt" || true
|
retry pip install -r "${pytorch_rootdir}/requirements.txt" || true
|
||||||
# TODO : Remove me later (but in the interim, use Anaconda cmake, to find Anaconda installed OpenMP)
|
# TODO : Remove me later (but in the interim, use Anaconda cmake, to find Anaconda installed OpenMP)
|
||||||
retry pip uninstall -y cmake
|
retry pip uninstall -y cmake
|
||||||
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -y llvm-openmp=14.0.6 cmake ninja "setuptools${SETUPTOOLS_PINNED_VERSION}" typing_extensions
|
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -y llvm-openmp=14.0.6 cmake
|
||||||
|
|
||||||
# For USE_DISTRIBUTED=1 on macOS, need libuv and pkg-config to find libuv.
|
# For USE_DISTRIBUTED=1 on macOS, need libuv and pkg-config to find libuv.
|
||||||
export USE_DISTRIBUTED=1
|
export USE_DISTRIBUTED=1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user