Skip to content

Commit

Permalink
Merge pull request #89 from thomasarsouze/remove_numpy.distutils
Browse files Browse the repository at this point in the history
Get rid of distutils
  • Loading branch information
ghislainv committed Jun 19, 2024
2 parents 87359ee + f496ef2 commit 592d57e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# Import
import io
import re
from distutils.core import Extension
from setuptools import setup, find_packages
import numpy.distutils.misc_util

from setuptools import setup, find_packages, Extension
import numpy

# Get the numpy include directory.
numpy_include_dir = numpy.get_include()
# find_version
def find_version(pkg_name):
"""Finding package version."""
Expand Down Expand Up @@ -66,7 +66,7 @@ def find_version(pkg_name):
],
keywords="deforestation hbm hierarchical logistic model probability "
"risk Bayesian spatial autocorrelation",
python_requires=">=3.6, <3.12",
python_requires=">=3.6",
ext_modules=[hbm_module],
packages=find_packages(),
package_dir={"forestatrisk": "forestatrisk"},
Expand Down Expand Up @@ -94,7 +94,7 @@ def find_version(pkg_name):
"interactive": ["jupyter", "python-dotenv", "geopandas",
"descartes", "folium"]
},
include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
include_dirs=[numpy_include_dir],
zip_safe=False,
)

Expand Down

0 comments on commit 592d57e

Please sign in to comment.