Hi there, I am having an issue where sometimes setuptools is running the finalize_options function but numpy is not installed yet:
...
File "/opt/python/3.7.1/lib/python3.7/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/tmp/pip-install-9ehdn6oz/imagecodecs/setup.py", line 600, in finalize_options
import numpy
ModuleNotFoundError: No module named 'numpy'
This appears to only happen on certain setups, perhaps just if pip tries to install imagecodecs before NumPy.
I just wanted to check if there is a reason it was commented out or if you have any advice to avoid this issue? I am currently just using a regular pip install from a requirements file.
Hi there, I am having an issue where sometimes setuptools is running the
finalize_options
function but numpy is not installed yet:This appears to only happen on certain setups, perhaps just if pip tries to install imagecodecs before NumPy.
I found the recommendation to add numpy to
setup_requires
(see https://github.com/numpy/numpy/issues/2434) in addition toinstall_requires
but I see that you have commented this out here https://github.com/cgohlke/imagecodecs/blob/92a8620ac300fbeb77929cfa72bf78fd74584345/setup.py#L660I just wanted to check if there is a reason it was commented out or if you have any advice to avoid this issue? I am currently just using a regular pip install from a requirements file.