From 62fa7a65e799392b1a66f947806be8ae86a4ebd8 Mon Sep 17 00:00:00 2001 From: Nelle Varoquaux Date: Fri, 19 Jan 2024 14:15:49 +0100 Subject: [PATCH] Adding new installation options --- iced/normalization/_normalization_.pyx | 2 +- setup.py | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/iced/normalization/_normalization_.pyx b/iced/normalization/_normalization_.pyx index 2d22ecf..da6c556 100644 --- a/iced/normalization/_normalization_.pyx +++ b/iced/normalization/_normalization_.pyx @@ -1,4 +1,4 @@ -import numpy as np +#import numpy as np cimport cython cimport numpy as np diff --git a/setup.py b/setup.py index 6a132f5..70466c7 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ import os import sys -from setuptools import setup +from setuptools import Extension, setup DISTNAME = 'iced' @@ -14,6 +14,15 @@ SCIPY_MIN_VERSION = '0.19.0' NUMPY_MIN_VERSION = '1.16.0' +extension_config = { + "_filter": [ + {"sources": ["_filter.pyx"]} + ], + "normalization": [ + {"sources": ["_normalization.pyx"]} + ] +} + setup( name=DISTNAME, @@ -27,5 +36,9 @@ "Topic :: Utilities", "License :: OSI Approved :: BSD License", ], + ext_modules=[ + Extension(name="iced._filter_", sources=["iced/_filter_.pyx"]), + Extension(name="iced.normalization/_normalization_", + sources=["iced/normalization/_normalization_.pyx"])], )