Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix overwriting wheel on macos #1129

Merged
merged 3 commits into from Jun 17, 2022
Merged

fix overwriting wheel on macos #1129

merged 3 commits into from Jun 17, 2022

Commits on Jun 9, 2022

  1. fix overwriting wheel on macos

    When I run on macOS, I get the following error:
    
    ```
    Traceback (most recent call last):
      File "/Users/david/.local/pipx/.cache/fd54e06d50697e7/bin/cibuildwheel", line 8, in <module>
        sys.exit(main())
      File "/Users/david/.local/pipx/.cache/fd54e06d50697e7/lib/python3.10/site-packages/cibuildwheel/__main__.py", line 128, in main
        build_in_directory(args)
      File "/Users/david/.local/pipx/.cache/fd54e06d50697e7/lib/python3.10/site-packages/cibuildwheel/__main__.py", line 252, in build_in_directory
        cibuildwheel.macos.build(options, tmp_path)
      File "/Users/david/.local/pipx/.cache/fd54e06d50697e7/lib/python3.10/site-packages/cibuildwheel/macos.py", line 538, in build
        shutil.move(str(repaired_wheel), build_options.output_dir)
      File "/opt/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/shutil.py", line 811, in move
        raise Error("Destination path '%s' already exists" % real_dst)
    shutil.Error: Destination path '/Users/david/Documents/GitHub/python-mpy-cross/wheelhouse/mpy_cross_v5-1.0.0-py3-none-macosx_11_0_arm64.whl' already exists
    ```
    
    The comment in the code says that it should overwrite the file, so this removes the file if it exists first before trying to move the file.
    dlech committed Jun 9, 2022
    Copy the full SHA
    526c554 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2022

  1. Copy the full SHA
    e6513a9 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    9f4303b View commit details
    Browse the repository at this point in the history