CMSIS-DSP icon indicating copy to clipboard operation
CMSIS-DSP copied to clipboard

Python 3.12 support

Open elagil opened this issue 1 year ago • 6 comments

With the release of Ubuntu 24.04 LTS, Python 3.12 is shipped.

Currently, cmsisdsp cannot install on it, due to it using the deprecated distutils. The same is true for some dependencies (e.g. numpy 1.22).

I can create a PR, but it will require to update dependencies as well (e.g. to numpy 1.26).

elagil avatar Apr 26 '24 10:04 elagil

See also: https://peps.python.org/pep-0632/#migration-advice

elagil avatar Apr 26 '24 10:04 elagil

@elagil Thanks. I have a PR about Python support that have been pending forever. I need to find some time to work on the Python support and correct all those problems.

christophe0606 avatar Apr 29 '24 05:04 christophe0606

If you point me to the other PR, I can work on it. We need that support at our company, so I can spend a bit of time on the topic.

Would you be open to move forward to the (somewhat) new way of defining python packages? See https://peps.python.org/pep-0518/

The former setup.py or similar will be replaced by a pyproject.toml in the process.

elagil avatar Apr 29 '24 07:04 elagil

@elagil The PR : https://github.com/ARM-software/CMSIS-DSP/pull/148 I just need time to merge and test ... time that I have unfortunately not found so far :-) I can switch to the new pyproject.toml ... I just need to still be able to support Python 3.9

christophe0606 avatar Apr 29 '24 07:04 christophe0606

It should be done in commit https://github.com/ARM-software/CMSIS-DSP/commit/3ebc686ff683cab1ef9b26b076ebe603a10e7437

It was tested only on windows so far. It has not yet been pushed to PyPI. More tests will be needed.

christophe0606 avatar Jun 17 '24 11:06 christophe0606

@christophe0606 Thanks, I saw that today in the commit history!

I will test on Ubuntu 24.04 and 22.04 and report issues, if any.

elagil avatar Jun 17 '24 17:06 elagil