From fd2b5e8ce7400652f38c9c72c5e72b6d3823c6f4 Mon Sep 17 00:00:00 2001 From: valentynbez Date: Fri, 23 Feb 2024 15:12:08 +0100 Subject: [PATCH] fix: compilation --- .github/workflows/build_docs.yml | 90 ++++++++++++++++---------------- mDeepFRI/alignment_utils.pyx | 2 + setup.py | 2 +- 3 files changed, 48 insertions(+), 46 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 1f7076b..6cdc35c 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -1,49 +1,49 @@ -# This workflow automatically generates the Sphinx documentation required for -# GitHub pages. Executed when main is pushed to. -name: Documentation update -on: - push: - branches: main - workflow_dispatch: +# # This workflow automatically generates the Sphinx documentation required for +# # GitHub pages. Executed when main is pushed to. +# name: Documentation update +# on: +# push: +# branches: main +# workflow_dispatch: -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/setup-python@v2 - with: - python-version: '3.8' +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/setup-python@v2 +# with: +# python-version: '3.8' - # Checkout the main branch (docs will be built from this) - - uses: actions/checkout@v2 - with: - path: main - # Checkout the documentation branch (docs will be pushed to this) - - uses: actions/checkout@v2 - with: - ref: gh-pages - path: gh-pages +# # Checkout the main branch (docs will be built from this) +# - uses: actions/checkout@v2 +# with: +# path: main +# # Checkout the documentation branch (docs will be pushed to this) +# - uses: actions/checkout@v2 +# with: +# ref: gh-pages +# path: gh-pages - - name: Install Sphinx requirements - working-directory: ${{ github.workspace }}/main/docs - run: | - sudo apt-get update -y - sudo apt-get install -y pandoc - python -m pip install --upgrade pip - python -m pip install -r requirements.txt - - name: Build documentation - working-directory: ${{ github.workspace }}/main/docs - run: make html +# - name: Install Sphinx requirements +# working-directory: ${{ github.workspace }}/main/docs +# run: | +# sudo apt-get update -y +# sudo apt-get install -y pandoc +# python -m pip install --upgrade pip +# python -m pip install -r requirements.txt +# - name: Build documentation +# working-directory: ${{ github.workspace }}/main/docs +# run: make html - - name: Move documentation - run: | - touch main/docs/build/html/.nojekyll - cp -a main/docs/build/html/. gh-pages/ - - name: Upload documentation - working-directory: ${{ github.workspace }}/gh-pages - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add --all - git diff-index --quiet HEAD || git commit -m "docs update" -a - git push +# - name: Move documentation +# run: | +# touch main/docs/build/html/.nojekyll +# cp -a main/docs/build/html/. gh-pages/ +# - name: Upload documentation +# working-directory: ${{ github.workspace }}/gh-pages +# run: | +# git config --local user.email "action@github.com" +# git config --local user.name "GitHub Action" +# git add --all +# git diff-index --quiet HEAD || git commit -m "docs update" -a +# git push diff --git a/mDeepFRI/alignment_utils.pyx b/mDeepFRI/alignment_utils.pyx index 184dc61..dbd9f9f 100644 --- a/mDeepFRI/alignment_utils.pyx +++ b/mDeepFRI/alignment_utils.pyx @@ -1,3 +1,5 @@ +# distutils: define_macros=NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION + cimport cython import numpy as np diff --git a/setup.py b/setup.py index a1689f3..63325b9 100644 --- a/setup.py +++ b/setup.py @@ -160,7 +160,7 @@ def run(self): sources=[SRC_DIR + "/alignment_utils.pyx"], language="c++", libraries=["stdc++"], - extra_compile_args=extra_compile_args.extend("-w")), + extra_compile_args=extra_compile_args), ] extras = {}