sakoho81 / miplib

A Python software library with a variety of functions for (optical) microscopy image restoration, reconstruction and analysis.
Other
70 stars 24 forks source link

use pyproject.toml to pre-install numpy #10

Closed alxndrkalinin closed 2 years ago

alxndrkalinin commented 2 years ago

Hi, thanks for the great package!

When we use miplib as a dependency, setup.py requires numpy to be pre-installed in order to compile extensions. To automate this, I suggest using pyproject.toml to specify packages required before running setup (PEP518). oldest-supported-numpy will specify the correct NumPy version at build time for wheels, taking into account Python version, Python implementation (CPython or PyPy), operating system and hardware platform.

Cheers!