Properly fix broken gcc_linux-64 package (#115)

This commit is contained in:
jllllll 2023-08-02 21:39:07 -05:00 committed by GitHub
parent ecd92d6a4e
commit aca5679968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,7 @@ def update_dependencies():
gxx_output = run_cmd("g++ -dumpfullversion -dumpversion", environment=True, capture_output=True) gxx_output = run_cmd("g++ -dumpfullversion -dumpversion", environment=True, capture_output=True)
if gxx_output.returncode != 0 or int(gxx_output.stdout.strip().split(b".")[0]) > 11: if gxx_output.returncode != 0 or int(gxx_output.stdout.strip().split(b".")[0]) > 11:
# Install the correct version of g++ # Install the correct version of g++
run_cmd("conda install -y -k gxx_linux-64=11.2.0 -c conda-forge", environment=True) run_cmd("conda install -y -k conda-forge::gxx_linux-64=11.2.0", environment=True)
# Install/Update ROCm AutoGPTQ for AMD GPUs # Install/Update ROCm AutoGPTQ for AMD GPUs
if '+rocm' in torver: if '+rocm' in torver: