diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml index 492f8a1..1f859e9 100644 --- a/.github/workflows/building.yml +++ b/.github/workflows/building.yml @@ -46,6 +46,7 @@ jobs: - name: Upgrade pip run: | pip install --upgrade setuptools + pip install wheel - name: Install scipy if: ${{ (matrix.python-version == '3.8') || (matrix.python-version == '3.9') }} @@ -79,30 +80,21 @@ jobs: shell: bash - - name: Install main package for CPU + - name: Build wheel for CPU if: ${{ matrix.cuda-version == 'cpu' }} run: | - FORCE_ONLY_CPU=1 pip install -v -e . --no-build-isolation + FORCE_ONLY_CPU=1 python setup.py bdist_wheel --dist-dir=dist shell: bash - - name: Install main package for GPU + - name: Build wheel for GPU if: ${{ matrix.cuda-version != 'cpu' }} run: | source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh - FORCE_CUDA=1 pip install -v -e . --no-build-isolation + FORCE_CUDA=1 python setup.py bdist_wheel --dist-dir=dist shell: bash - - name: Test installation - run: | - python -c "import torch_cluster; print('torch-cluster:', torch_cluster.__version__)" - - - name: Build wheel - run: | - pip install wheel - python setup.py bdist_wheel --dist-dir=dist - - name: Configure AWS uses: aws-actions/configure-aws-credentials@v1 with: