cmake-python-distributions icon indicating copy to clipboard operation
cmake-python-distributions copied to clipboard

macOS: Permission denied: '/usr/local/LICENSE_BSD_3'

Open ax3l opened this issue 3 years ago • 2 comments

Since the 3.24.0 release, I see the following issue on macOS in my CI:

python3 -m pip install -U pip setuptools wheel pytest
python3 -m pip install -U cmake
...
packages: cmake
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/LICENSE_BSD_3
Consider using the `--user` option or check the permissions.

ax3l avatar Aug 26 '22 20:08 ax3l

Reproducer GH Action:

name: 🍏 macOS

on: [push, pull_request]

concurrency:
  group: ${{ github.ref }}-${{ github.head_ref }}-macos
  cancel-in-progress: true

jobs:
  appleclang:
    name: [email protected] w/o MPI
    runs-on: macos-latest
    if: github.event.pull_request.draft == false
    steps:
    - uses: actions/checkout@v2
    - name: Build & Install
      run: |
        brew update
        brew install gfortran || true
        brew install libomp || true
        brew install open-mpi || true
        python3 -m pip install -U pip setuptools wheel pytest
        python3 -m pip install -U cmake

ax3l avatar Aug 26 '22 20:08 ax3l

More details:

  • worked with earlier releases, up to ~~3.23.3~~ 3.24.0
  • --user does not work as a work around

ax3l avatar Aug 26 '22 20:08 ax3l

@ax3l,

I can't reproduce with 3.24.0 however I do reproduce this with 3.24.1 Is that a mistake when reporting the issue or am I missing something else ?

mayeut avatar Sep 04 '22 08:09 mayeut

@henryiii,

I will tag 3.24.1.1 once I have confirmation from @ax3l that there's nothing wrong with 3.24.0 in case I'm missing something else. I'll also yank 3.24.1 in PyPI.

mayeut avatar Sep 04 '22 12:09 mayeut

Sounds good!

henryiii avatar Sep 04 '22 12:09 henryiii

Thank you for the quick fix!

I did a detailed test again and you are right:

  • 3.23.3 works
  • 3.24.0 works
  • 3.24.1 breaks macOS

ax3l avatar Sep 07 '22 23:09 ax3l