peterwittek / somoclu

Massively parallel self-organizing maps: accelerate training on multicore CPUs, GPUs, and clusters
https://peterwittek.github.io/somoclu/
MIT License
266 stars 69 forks source link

Can't build wheel with somoclu and pip 23.1 #169

Closed OliviaLynn closed 1 year ago

OliviaLynn commented 1 year ago

Pip's recent update to 23.1 is now preventing users from building wheels that include somoclu.

I've recreated the most minimal version in an empty repository with the workflow:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.10"]
    steps:
    - uses: actions/checkout@v3
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install numpy
        pip install somoclu

This workflow fails [link], but on removing the line to upgrade pip, the workflow runs successfully [link].

xgdgsc commented 1 year ago

Is this https://github.com/pypa/pip/issues/8559 ?

OliviaLynn commented 1 year ago

Looks like it--adding a pip install wheel before installing somoclu lets us use an upgraded pip. Thanks!