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

When building an arm64 wheel on macos-12 runner on GitHub Actions, the artifact filename contains x86_64 #1415

Closed
azagniotov opened this issue Feb 10, 2023 · 5 comments

Comments

@azagniotov
Copy link

azagniotov commented Feb 10, 2023

Description

Hello Team!

As per subject. When building an arm64 wheel on macos-12 runner on GitHub Actions and using cibuildwheel macosx_arm64, the final artifact filename contains x86_64, instead of arm64.

Is the file naming logic working as intended or is it a bug or am I blatantly missing something here? If this is the latter, then I apologize for wasting your time 🙇🏼 Does the library assigns the underlying architecture type to the filename, despite the fact that I am building an arm64 wheel?

To name the .whl file to contain arm64, I ended up leveraging CIBW_REPAIR_WHEEL_COMMAND_MACOS to rename the artifact after the repair process. This is kind of important for me, since I generate multiple artifacts on different platforms and I do not want artifact names to conflict.

Although I cannot provide links to the Ci config, as this is a private repository, I can paste the GitHub action job config here:

CI config

jobs:
  wheels_arm64:
    name: ${{ matrix.os }}_${{ matrix.cibuildwheel_platform_id }}
    runs-on: ${{ matrix.os }}

    strategy:
      # Ensure that a wheel builder finishes even if another fails
      fail-fast: false
      matrix:
        include:

          # MacOS AMD 64
          - os: macos-12
            python: 310
            cibuildwheel_platform_id: macosx_arm64

    steps:
      - uses: actions/checkout@v3
      - name: Build wheels
        uses: pypa/cibuildwheel@v2.12.0
        env:
          CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
            delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} &&
            for file in {dest_dir}/*.whl ; do mv $file ${file//x86_64/arm64} ; done
          CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.cibuildwheel_platform_id }}
          CIBW_ARCHS_MACOS: "arm64"
          CIBW_BUILD_VERBOSITY: 1

        with:
          package-dir: ./python
          output-dir: wheelhouse
          config-file: "{package}/pyproject.toml"

      - name: "Store artifacts"
        ...
        ...

Build log


2023-02-10T07:09:19.5900730Z Download action repository 'actions/setup-python@v4' (SHA:d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435)
2023-02-10T07:09:20.3428460Z Complete job name: macos-12_macosx_arm64
2023-02-10T07:09:20.5493250Z ##[group]Run actions/checkout@v3
2023-02-10T07:09:20.5493760Z with:
2023-02-10T07:09:20.5494070Z   repository: private/github-repository
2023-02-10T07:09:20.5494750Z   token: ***
2023-02-10T07:09:20.5494990Z   ssh-strict: true
2023-02-10T07:09:20.5495270Z   persist-credentials: true
2023-02-10T07:09:20.5495590Z   clean: true
2023-02-10T07:09:20.5495810Z   fetch-depth: 1
2023-02-10T07:09:20.5496300Z   lfs: false
2023-02-10T07:09:20.5496610Z   submodules: false
2023-02-10T07:09:20.5496860Z   set-safe-directory: true
2023-02-10T07:09:20.5497190Z ##[endgroup]
2023-02-10T07:09:22.3850210Z Syncing repository: private/github-repository
2023-02-10T07:09:22.3853140Z ##[group]Getting Git version info
2023-02-10T07:09:22.3853840Z Working directory is '/Users/runner/work/my-project/my-project'
2023-02-10T07:09:22.3854730Z [command]/usr/local/bin/git version
2023-02-10T07:09:22.4402610Z git version 2.39.1
2023-02-10T07:09:22.4450300Z ##[endgroup]
2023-02-10T07:09:22.4479680Z Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/1c086499-f2aa-4fd5-bceb-a9923a666b37/.gitconfig'
2023-02-10T07:09:22.4498980Z Temporarily overriding HOME='/Users/runner/work/_temp/1c086499-f2aa-4fd5-bceb-a9923a666b37' before making global git config changes
2023-02-10T07:09:22.4499980Z Adding repository directory to the temporary git global config as a safe directory
2023-02-10T07:09:22.4507870Z [command]/usr/local/bin/git config --global --add safe.directory /Users/runner/work/my-project/my-project
2023-02-10T07:09:22.4645680Z Deleting the contents of '/Users/runner/work/my-project/my-project'
2023-02-10T07:09:22.4657350Z ##[group]Initializing the repository
2023-02-10T07:09:22.4663740Z [command]/usr/local/bin/git init /Users/runner/work/my-project/my-project
2023-02-10T07:09:22.4926690Z hint: Using 'master' as the name for the initial branch. This default branch name
2023-02-10T07:09:22.4927360Z hint: is subject to change. To configure the initial branch name to use in all
2023-02-10T07:09:22.4927840Z hint: of your new repositories, which will suppress this warning, call:
2023-02-10T07:09:22.4928400Z hint:
2023-02-10T07:09:22.4928940Z hint: 	git config --global init.defaultBranch <name>
2023-02-10T07:09:22.4929240Z hint:
2023-02-10T07:09:22.4929720Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2023-02-10T07:09:22.4930970Z hint: 'development'. The just-created branch can be renamed via this command:
2023-02-10T07:09:22.4931710Z hint:
2023-02-10T07:09:22.4932400Z hint: 	git branch -m <name>
2023-02-10T07:09:22.5011110Z Initialized empty Git repository in /Users/runner/work/my-project/my-project/.git/
2023-02-10T07:09:22.5027940Z [command]/usr/local/bin/git remote add origin https://github.com/private/github-repository
2023-02-10T07:09:22.5165080Z ##[endgroup]
2023-02-10T07:09:22.5165730Z ##[group]Disabling automatic garbage collection
2023-02-10T07:09:22.5179490Z [command]/usr/local/bin/git config --local gc.auto 0
2023-02-10T07:09:22.5293270Z ##[endgroup]
2023-02-10T07:09:22.5294220Z ##[group]Setting up auth
2023-02-10T07:09:22.5307110Z [command]/usr/local/bin/git config --local --name-only --get-regexp core\.sshCommand
2023-02-10T07:09:22.5472050Z [command]/usr/local/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2023-02-10T07:09:22.7364490Z [command]/usr/local/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2023-02-10T07:09:22.7477580Z [command]/usr/local/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2023-02-10T07:09:22.9676350Z [command]/usr/local/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2023-02-10T07:09:22.9982770Z ##[endgroup]
2023-02-10T07:09:23.0085980Z ##[group]Fetching the repository
2023-02-10T07:09:23.0153000Z [command]/usr/local/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +5e14ca4dc3f4ad7912a00f0c034ee9fac7c6ca23:refs/remotes/origin/multi_architecture_artifacts
2023-02-10T07:09:23.4762410Z remote: Enumerating objects: 29, done.        
2023-02-10T07:09:23.4765610Z remote: Counting objects:   3% (1/29)        
2023-02-10T07:09:23.4769640Z remote: Counting objects:   6% (2/29)        
2023-02-10T07:09:23.4770700Z remote: Counting objects:  10% (3/29)        
...     
...
2023-02-10T07:09:23.4912710Z remote: Compressing objects: 100% (26/26)        
2023-02-10T07:09:23.4913620Z remote: Compressing objects: 100% (26/26), done.        
2023-02-10T07:09:23.4914650Z remote: Total 29 (delta 1), reused 15 (delta 0), pack-reused 0        
2023-02-10T07:09:23.5324520Z From https://github.com/private/github-repository
2023-02-10T07:09:23.5326490Z  * [new ref]         5e14ca4dc3f4ad7912a00f0c034ee9fac7c6ca23 -> origin/multi_architecture_artifacts
2023-02-10T07:09:23.5433470Z ##[endgroup]
2023-02-10T07:09:23.5434500Z ##[group]Determining the checkout info
2023-02-10T07:09:23.5438580Z ##[endgroup]
2023-02-10T07:09:23.5439570Z ##[group]Checking out the ref
2023-02-10T07:09:23.5447500Z [command]/usr/local/bin/git checkout --progress --force -B multi_architecture_artifacts refs/remotes/origin/multi_architecture_artifacts
2023-02-10T07:09:23.5728220Z Switched to a new branch 'multi_architecture_artifacts'
2023-02-10T07:09:23.5731480Z branch 'multi_architecture_artifacts' set up to track 'origin/multi_architecture_artifacts'.
2023-02-10T07:09:23.5739270Z ##[endgroup]
2023-02-10T07:09:23.5872320Z [command]/usr/local/bin/git log -1 --format='%H'
2023-02-10T07:09:23.5976350Z '5e14ca4dc3f4ad7912a00f0c034ee9fac7c6ca23'
...
...
...
2023-02-10T07:10:26.1772380Z ##[group]Run pypa/cibuildwheel@v2.12.0
2023-02-10T07:10:26.1773050Z with:
2023-02-10T07:10:26.1773320Z   package-dir: ./python
2023-02-10T07:10:26.1774510Z   output-dir: wheelhouse
2023-02-10T07:10:26.1774810Z   config-file: {package}/pyproject.toml
2023-02-10T07:10:26.1775080Z env:
2023-02-10T07:10:26.1775490Z   CIBW_REPAIR_WHEEL_COMMAND_MACOS: delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} && for file in {dest_dir}/*.whl ; do mv $file ${file//x86_64/arm64} ; done

2023-02-10T07:10:26.1776160Z   CIBW_BUILD: cp310-macosx_arm64
2023-02-10T07:10:26.1776640Z   CIBW_ARCHS_MACOS: arm64
2023-02-10T07:10:26.1777110Z   CIBW_TEST_SKIP: *macosx*arm64*
2023-02-10T07:10:26.1777450Z   CIBW_BUILD_VERBOSITY: 1
2023-02-10T07:10:26.1778080Z ##[endgroup]
2023-02-10T07:10:26.2245310Z ##[group]Run actions/setup-python@v4
2023-02-10T07:10:26.2245620Z with:
2023-02-10T07:10:26.2245950Z   python-version: 3.7 - 3.11
2023-02-10T07:10:26.2246580Z   update-environment: false
2023-02-10T07:10:26.2247270Z   check-latest: false
2023-02-10T07:10:26.2247920Z   token: ***
2023-02-10T07:10:26.2248420Z env:
2023-02-10T07:10:26.2248820Z   CIBW_REPAIR_WHEEL_COMMAND_MACOS: delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} && for file in {dest_dir}/*.whl ; do mv $file ${file//x86_64/arm64} ; done

2023-02-10T07:10:26.2249360Z   CIBW_BUILD: cp310-macosx_arm64
2023-02-10T07:10:26.2249610Z   CIBW_ARCHS_MACOS: arm64
2023-02-10T07:10:26.2249880Z   CIBW_TEST_SKIP: *macosx*arm64*
2023-02-10T07:10:26.2250300Z   CIBW_BUILD_VERBOSITY: 1
2023-02-10T07:10:26.2250500Z ##[endgroup]
2023-02-10T07:10:26.5375310Z ##[group]Installed versions
2023-02-10T07:10:26.5839340Z Successfully set up CPython (3.11.1)
2023-02-10T07:10:26.5840160Z ##[endgroup]
2023-02-10T07:10:26.6136610Z ##[group]Run pipx run --python '/Users/runner/hostedtoolcache/Python/3.11.1/x64/bin/python' --spec '/Users/runner/work/_actions/pypa/cibuildwheel/v2.12.0' cibuildwheel "./python" --output-dir "wheelhouse" --config-file "{package}/pyproject.toml" --only "" 2>&1
2023-02-10T07:10:26.6137730Z �[36;1mpipx run --python '/Users/runner/hostedtoolcache/Python/3.11.1/x64/bin/python' --spec '/Users/runner/work/_actions/pypa/cibuildwheel/v2.12.0' cibuildwheel "./python" --output-dir "wheelhouse" --config-file "{package}/pyproject.toml" --only "" 2>&1�[0m
2023-02-10T07:10:26.6371570Z shell: /bin/bash --noprofile --norc -e -o pipefail {0}
2023-02-10T07:10:26.6374160Z env:
2023-02-10T07:10:26.6374850Z   CIBW_REPAIR_WHEEL_COMMAND_MACOS: delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} && for file in {dest_dir}/*.whl ; do mv $file ${file//x86_64/arm64} ; done

2023-02-10T07:10:26.6375840Z   CIBW_BUILD: cp310-macosx_arm64
2023-02-10T07:10:26.6377700Z   CIBW_ARCHS_MACOS: arm64
2023-02-10T07:10:26.6378330Z   CIBW_TEST_SKIP: *macosx*arm64*
2023-02-10T07:10:26.6378770Z   CIBW_BUILD_VERBOSITY: 1
2023-02-10T07:10:26.6379090Z ##[endgroup]
2023-02-10T07:10:27.4932090Z creating virtual environment...
2023-02-10T07:10:28.7666090Z creating virtual environment...
2023-02-10T07:10:28.9198160Z determining package name from '/Users/runner/work/_actions/pypa/cibuildwheel/v2.12.0'...
2023-02-10T07:10:40.6877550Z installing cibuildwheel from spec '/Users/runner/work/_actions/pypa/cibuildwheel/v2.12.0'...
2023-02-10T07:10:48.3856540Z
2023-02-10T07:10:48.3867000Z      _ _       _ _   _       _           _
2023-02-10T07:10:48.3874400Z  ___|_| |_ _ _|_| |_| |_ _ _| |_ ___ ___| |
2023-02-10T07:10:48.3875540Z |  _| | . | | | | | . | | | |   | -_| -_| |
2023-02-10T07:10:48.3876290Z |___|_|___|___|_|_|___|_____|_|_|___|___|_|
2023-02-10T07:10:48.3876840Z
2023-02-10T07:10:48.3877460Z cibuildwheel version 2.12.0
2023-02-10T07:10:48.3877980Z
2023-02-10T07:10:48.3885170Z Build options:
2023-02-10T07:10:48.3886100Z   platform: macos
2023-02-10T07:10:48.3900160Z   architectures: arm64�[0m
2023-02-10T07:10:48.3900970Z   build_selector:
2023-02-10T07:10:48.3901860Z     build_config: cp310-macosx_arm64
2023-02-10T07:10:48.3902770Z     skip_config:
2023-02-10T07:10:48.3909340Z     requires_python: None
2023-02-10T07:10:48.3911430Z     prerelease_pythons: False�[0m
2023-02-10T07:10:48.3912410Z   �[38;5;244mcontainer_engine: docker�[0m
2023-02-10T07:10:48.3915270Z   output_dir: /Users/runner/work/my-project/my-project/wheelhouse�[0m
2023-02-10T07:10:48.3919060Z   package_dir: /Users/runner/work/my-project/my-project/python�[0m
2023-02-10T07:10:48.3925010Z   test_selector:
2023-02-10T07:10:48.3925980Z     skip_config: *macosx*arm64*�[0m
2023-02-10T07:10:48.3926490Z   �[38;5;244mbefore_all: �[0m
2023-02-10T07:10:48.3927690Z   �[38;5;244mbefore_build: �[0m
2023-02-10T07:10:48.3928770Z   �[38;5;244mbefore_test: �[0m
2023-02-10T07:10:48.3936120Z   �[38;5;244mbuild_frontend: pip�[0m
2023-02-10T07:10:48.3937120Z   build_verbosity: 1�[0m
2023-02-10T07:10:48.3938760Z   �[38;5;244mconfig_settings: �[0m
2023-02-10T07:10:48.3939960Z   �[38;5;244mdependency_constraints: pinned�[0m
2023-02-10T07:10:48.3940890Z   �[38;5;244menvironment: �[0m
2023-02-10T07:10:48.3941840Z   �[38;5;244mmanylinux_images: None�[0m
2023-02-10T07:10:48.3942790Z   �[38;5;244mmusllinux_images: None�[0m
2023-02-10T07:10:48.3943510Z   repair_command:
2023-02-10T07:10:48.3945070Z     delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} && for file in {dest_dir}/*.whl ; do mv $file ${file//x86_64/arm64} ; done�[0m
2023-02-10T07:10:48.3946120Z   �[38;5;244mtest_command: �[0m
2023-02-10T07:10:48.3947090Z   �[38;5;244mtest_extras: �[0m
2023-02-10T07:10:48.3947930Z   �[38;5;244mtest_requires: �[0m
2023-02-10T07:10:48.3948780Z
2023-02-10T07:10:48.3949370Z Cache folder: /Users/runner/Library/Caches/cibuildwheel
2023-02-10T07:10:48.3950100Z
2023-02-10T07:10:48.3950610Z Here we go!
2023-02-10T07:10:48.3951170Z
2023-02-10T07:10:48.3970630Z
2023-02-10T07:10:48.3971610Z �[1m�[34mBuilding cp310-macosx_arm64 wheel�[0m
2023-02-10T07:10:48.3972150Z CPython 3.10 macOS arm64 - Apple Silicon
2023-02-10T07:10:48.3972890Z
2023-02-10T07:10:48.3976710Z ##[group]Installing Python cp310...
2023-02-10T07:10:48.3977000Z
2023-02-10T07:10:48.3978700Z + pkgutil --pkgs
2023-02-10T07:10:48.6909410Z + Download https://www.python.org/ftp/python/3.10.9/python-3.10.9-macos11.pkg to /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/build/Python.pkg
2023-02-10T07:10:49.5354980Z + sudo installer -pkg /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/build/Python.pkg -target /
2023-02-10T07:11:29.2968230Z installer: Package name is Python
2023-02-10T07:11:29.3007870Z installer: Upgrading at base path /
2023-02-10T07:11:29.3008970Z installer: The upgrade was successful.
2023-02-10T07:11:29.3080650Z + /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 /usr/local/Cellar/pipx/1.1.0/.cache/c9d85a04e6b9582/lib/python3.11/site-packages/cibuildwheel/resources/install_certifi.py
2023-02-10T07:11:30.3237360Z Collecting certifi
2023-02-10T07:11:30.3317100Z   Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
2023-02-10T07:11:30.3928800Z Installing collected packages: certifi
2023-02-10T07:11:30.4112380Z Successfully installed certifi-2022.12.7
2023-02-10T07:11:30.5235210Z  -- pip install --upgrade certifi
2023-02-10T07:11:30.5236080Z  -- removing any existing file or link
2023-02-10T07:11:30.5236870Z  -- creating symlink to certifi certificate bundle
2023-02-10T07:11:30.5237400Z  -- setting permissions
2023-02-10T07:11:30.5238010Z  -- update complete
2023-02-10T07:11:30.5347180Z ##[endgroup]
2023-02-10T07:11:30.5354320Z                                                              �[32m✓ �[0m42.14s
2023-02-10T07:11:30.5355980Z ##[group]Setting up build environment...
2023-02-10T07:11:30.5356290Z
2023-02-10T07:11:30.5385840Z + Download https://github.com/pypa/get-virtualenv/blob/20.17.1/public/virtualenv.pyz?raw=true to /Users/runner/Library/Caches/cibuildwheel/virtualenv-20.17.1.pyz
2023-02-10T07:11:30.9426720Z + /usr/local/Cellar/pipx/1.1.0/.cache/c9d85a04e6b9582/bin/python -sS /Users/runner/Library/Caches/cibuildwheel/virtualenv-20.17.1.pyz --activators= --no-periodic-update --pip=22.3.1 --setuptools=66.0.0 --wheel=0.38.4 --symlink-app-data --python /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/build/venv
2023-02-10T07:11:38.2222940Z created virtual environment CPython3.10.9.final.0-64 in 6982ms
2023-02-10T07:11:38.2280580Z   creator CPython3Posix(dest=/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/build/venv, clear=False, no_vcs_ignore=False, global=False)
2023-02-10T07:11:38.2375660Z   seeder FromAppData(download=False, pip=22.3.1, setuptools=66.0.0, wheel=0.38.4, via=symlink, app_data_dir=/Users/runner/Library/Application Support/virtualenv)
2023-02-10T07:11:38.2377020Z     added seed packages: pip==22.3.1, setuptools==66.0.0, wheel==0.38.4
2023-02-10T07:11:38.2639450Z + python -m pip install --upgrade pip -c /usr/local/Cellar/pipx/1.1.0/.cache/c9d85a04e6b9582/lib/python3.11/site-packages/cibuildwheel/resources/constraints-python310.txt
2023-02-10T07:11:39.1033740Z Requirement already satisfied: pip in ./lib/python3.10/site-packages (22.3.1)
2023-02-10T07:11:39.4758790Z + which pip
2023-02-10T07:11:39.5162660Z /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/build/venv/bin/pip
2023-02-10T07:11:39.5264720Z + pip --version
2023-02-10T07:11:40.0383710Z pip 22.3.1 from /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/build/venv/lib/python3.10/site-packages/pip (python 3.10)
2023-02-10T07:11:40.1597690Z + which pip
2023-02-10T07:11:40.2113460Z + which python
2023-02-10T07:11:40.2320170Z /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/build/venv/bin/python
2023-02-10T07:11:40.2845690Z + python --version
2023-02-10T07:11:40.2951590Z Python 3.10.9
2023-02-10T07:11:40.3054300Z + which python
2023-02-10T07:11:40.3601760Z ##[endgroup]
2023-02-10T07:11:40.3673740Z                                                               �[32m✓ �[0m9.82s
2023-02-10T07:11:40.3755190Z ##[group]Installing build tools...
2023-02-10T07:11:40.3824940Z
2023-02-10T07:11:40.3923910Z + pip install --upgrade setuptools wheel delocate -c /usr/local/Cellar/pipx/1.1.0/.cache/c9d85a04e6b9582/lib/python3.11/site-packages/cibuildwheel/resources/constraints-python310.txt
2023-02-10T07:11:41.0583950Z Requirement already satisfied: setuptools in /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/build/venv/lib/python3.10/site-packages (66.0.0)
2023-02-10T07:11:41.4979760Z Requirement already satisfied: wheel in /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/build/venv/lib/python3.10/site-packages (0.38.4)
2023-02-10T07:11:41.5947230Z Collecting delocate
2023-02-10T07:11:41.6183360Z   Downloading delocate-0.10.4-py3-none-any.whl (142 kB)
2023-02-10T07:11:41.6342050Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.0/143.0 kB 11.8 MB/s eta 0:00:00
2023-02-10T07:11:41.6753540Z Collecting typing-extensions
2023-02-10T07:11:41.6813810Z   Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
2023-02-10T07:11:41.7321140Z Collecting packaging>=20.9
2023-02-10T07:11:41.7363930Z   Using cached packaging-23.0-py3-none-any.whl (42 kB)
2023-02-10T07:11:41.8044780Z Installing collected packages: typing-extensions, packaging, delocate
2023-02-10T07:11:41.9847840Z Successfully installed delocate-0.10.4 packaging-23.0 typing-extensions-4.4.0
2023-02-10T07:11:42.0832440Z ##[endgroup]
2023-02-10T07:11:42.0834290Z                                                               �[32m✓ �[0m1.72s
2023-02-10T07:11:42.0839580Z ##[group]Building wheel...
2023-02-10T07:11:42.0840550Z
2023-02-10T07:11:42.0843500Z + python -m pip wheel /Users/runner/work/my-project/my-project/python --wheel-dir=/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/built_wheel --no-deps -v
2023-02-10T07:11:42.7707180Z Processing ./python
2023-02-10T07:11:42.7778090Z   Installing build dependencies: started
2023-02-10T07:11:42.7780160Z   Running command pip subprocess to install build dependencies
2023-02-10T07:11:43.5880040Z   Collecting poetry-core>=1.0.0
2023-02-10T07:11:43.6115180Z     Downloading poetry_core-1.5.0-py3-none-any.whl (464 kB)
2023-02-10T07:11:43.6363310Z        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 465.0/465.0 kB 22.9 MB/s eta 0:00:00
2023-02-10T07:11:44.0772250Z   Collecting setuptools
2023-02-10T07:11:44.0901680Z     Using cached setuptools-67.2.0-py3-none-any.whl (1.1 MB)
2023-02-10T07:11:44.2960900Z   Installing collected packages: setuptools, poetry-core
2023-02-10T07:11:45.7859220Z   Successfully installed poetry-core-1.5.0 setuptools-67.2.0
2023-02-10T07:11:45.9057480Z   Installing build dependencies: finished with status 'done'
2023-02-10T07:11:45.9079030Z   Getting requirements to build wheel: started
2023-02-10T07:11:45.9081510Z   Running command Getting requirements to build wheel
2023-02-10T07:11:46.0632630Z   Getting requirements to build wheel: finished with status 'done'
2023-02-10T07:11:46.0667560Z   Preparing metadata (pyproject.toml): started
2023-02-10T07:11:46.0670690Z   Running command Preparing metadata (pyproject.toml)
2023-02-10T07:11:46.4831670Z   Preparing metadata (pyproject.toml): finished with status 'done'
2023-02-10T07:11:46.4903020Z Building wheels for collected packages: my-project
2023-02-10T07:11:46.4927010Z   Building wheel for my-project (pyproject.toml): started
2023-02-10T07:11:46.4930200Z   Running command Building wheel for my-project (pyproject.toml)
2023-02-10T07:11:49.6527410Z   Building wheel for my-project (pyproject.toml): finished with status 'done'
2023-02-10T07:11:49.8333830Z   Created wheel for my-project: filename=my_project-0.0.5-cp310-cp310-macosx_12_0_x86_64.whl size=57176054 sha256=76f02ce5b761978479018fb96ae82773f566f53d6e4bbd3160625bf6a1ac84f6
2023-02-10T07:11:49.8335960Z   Stored in directory: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-ephem-wheel-cache-wx1yfoe7/wheels/8a/5f/09/7e79eb873861d9fd2ce1d45c501f4727914202a673e433587a
2023-02-10T07:11:49.8400260Z Successfully built my-project
2023-02-10T07:11:50.1682190Z ##[endgroup]
2023-02-10T07:11:50.1684190Z                                                               �[32m✓ �[0m8.08s
2023-02-10T07:11:50.1684940Z ##[group]Repairing wheel...
2023-02-10T07:11:50.1685150Z
2023-02-10T07:11:50.1691910Z + delocate-wheel --require-archs arm64 -w /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/repaired_wheel -v /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/built_wheel/my_project-0.0.5-cp310-cp310-macosx_12_0_x86_64.whl && for file in /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/repaired_wheel/*.whl ; do mv $file ${file//x86_64/arm64} ; done
2023-02-10T07:11:50.1692950Z
2023-02-10T07:11:58.9127560Z Fixing: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-lmchx0na/cp310-macosx_arm64/built_wheel/my_project-0.0.5-cp310-cp310-macosx_12_0_x86_64.whl
2023-02-10T07:11:58.9427700Z ##[endgroup]
2023-02-10T07:11:58.9429910Z                                                               �[32m✓ �[0m8.77s
2023-02-10T07:11:58.9720280Z
2023-02-10T07:11:58.9721540Z �[32m✓ �[0mcp310-macosx_arm64 finished in 70.57s
2023-02-10T07:11:58.9726660Z
2023-02-10T07:11:58.9727300Z 1 wheels produced in 1 minutes:
2023-02-10T07:11:58.9728760Z   my_project-0.0.5-cp310-cp310-macosx_12_0_arm64.whl   55,836 kB

Poetry build.py

# This is a dummy build script for Poetry.
# This is needed to build platform-dependent wheels.
# Otherwise, platform-independent package (`py3-none-any.whl`) is built.

def build(setup_kwargs: dict):
    ...

^ I am not actually building anything using the above script, the wheels that i am building are merely wrappers for a compiled Go source into .so file

@Czaki
Copy link
Contributor

Czaki commented Feb 10, 2023

could you add part of log before Building Wheel (this part with setup python)?

@joerick
Copy link
Contributor

joerick commented Feb 10, 2023 via email

@azagniotov
Copy link
Author

@Czaki and @joerick , I have updated the description section of the current issue with the requested information. Thank you. Please let me know if anything else is needed

@Czaki
Copy link
Contributor

Czaki commented Feb 10, 2023

As far as I remember (see python-poetry/poetry#7107) poetry does not support cross-compilation of wheels.
You need either switch to setuptools build system or use ARM host runner.

@azagniotov
Copy link
Author

@Czaki and @joerick Thanks for taking the time and being so prompt. This helps 👍🏼 I will close the issue as resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants