From 8a474dd0b8c6ac8a531a9b585e2aa1092a3c67f1 Mon Sep 17 00:00:00 2001 From: LinearParadox Date: Mon, 12 Jan 2026 17:47:08 -0800 Subject: [PATCH 1/3] add pyproject.toml, resolve numpy buildtime dependency --- pyproject.toml | 3 +++ setup.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..689dda2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel", "cython", "numpy < 2.0"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 915beb7..8256c61 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,6 @@ from setuptools import setup, find_packages, Extension import sys from pathlib import Path -import numpy # with open('README.rst') as readme_file: # readme = readme_file.read() @@ -30,12 +29,14 @@ def readme(): try: from Cython.Build import cythonize + import numpy extensions = cythonize([ Extension("fseq2.idr_2_0_3.inv_cdf", ["fseq2/idr_2_0_3/inv_cdf.pyx", ], include_dirs=[numpy.get_include()]), ]) except ImportError: + import numpy extensions = [ Extension("fseq2.idr_2_0_3.inv_cdf", ["fseq2/idr_2_0_3/inv_cdf.c", ], From 5626f72a6a6cc3e42184283bc846473d1d252eda Mon Sep 17 00:00:00 2001 From: LinearParadox Date: Mon, 12 Jan 2026 17:58:57 -0800 Subject: [PATCH 2/3] update pyproject with name and deps --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 689dda2..dd2acb4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,8 @@ [build-system] requires = ["setuptools", "wheel", "cython", "numpy < 2.0"] build-backend = "setuptools.build_meta" + +[project] +name = "fseq2" +version = "2.0.4" +dynamic = ["dependencies"] From 7eacbf750773f6c6e89b681ea02800e98d337f90 Mon Sep 17 00:00:00 2001 From: LinearParadox Date: Mon, 12 Jan 2026 18:16:19 -0800 Subject: [PATCH 3/3] fix pyproject weirdness --- pyproject.toml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dd2acb4..689dda2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,3 @@ [build-system] requires = ["setuptools", "wheel", "cython", "numpy < 2.0"] build-backend = "setuptools.build_meta" - -[project] -name = "fseq2" -version = "2.0.4" -dynamic = ["dependencies"]