Skip to content

Commit

Permalink
Get rid of distutils
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasarsouze committed Jun 19, 2024
1 parent 87359ee commit e5e4872
Showing 1 changed file with 6 additions and 6 deletions.
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 e5e4872

Please sign in to comment.