ROCm / apex

A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
18 stars 16 forks source link

Updated pip no longer supports `--install-option` for building without cloning #111

Closed loadams closed 1 year ago

loadams commented 1 year ago

Describe the Bug The latest changes to pip no longer include --install-option as a way to install without cloning the source, directions from here.

Minimal Steps/Code to Reproduce the Bug Run the following commands:

pip install -U pip
pip install ninja
pip install -v --install-option="--cpp_ext" --install-option="--cuda_ext" 'git+https://github.com/ROCmSoftwarePlatform/apex.git'

Expected Behavior Installation of apex.

Environment Any with the latest pip.

loadams commented 1 year ago

I was able to work around this by changing my command to this:

pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings="--global-option=--cpp_ext" --config-settings="--global-option=--cuda_ext" --target=/blob/amd-apex/ --upgrade .