Skip to content

Commit

Permalink
Remove numpy build cludge
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Jun 27, 2024
1 parent 00e5a03 commit 03e4091
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker/shared.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PYTHON_VERSIONS=(
cp312-cp312
cp311-cp311
cp310-cp310
cp39-cp39
cp38-cp38
)
13 changes: 0 additions & 13 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,10 @@

from setuptools import Extension
from setuptools import setup
from setuptools.command.build_ext import build_ext

IS_WINDOWS = platform.system() == "Windows"


class local_build_ext(build_ext):
def finalize_options(self):
build_ext.finalize_options(self)
import builtins

builtins.__NUMPY_SETUP__ = False
import numpy

self.include_dirs.append(numpy.get_include())


libdir = "lib"
kastore_dir = os.path.join(libdir, "subprojects", "kastore")
tsk_source_files = [
Expand Down Expand Up @@ -53,5 +41,4 @@ def finalize_options(self):

setup(
ext_modules=[_tskit_module],
cmdclass={"build_ext": local_build_ext},
)

0 comments on commit 03e4091

Please sign in to comment.