I've been getting warnings like this a lot lately.
This particular example is from build a docker image.
DEPRECATION: astroscrappy was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
This is the full log section.
Building wheels for collected packages: ccdproc, pyinotify, astroscrappy, click-didyoumean
Building wheel for ccdproc (PEP 517): started
Building wheel for ccdproc (PEP 517): finished with status 'done'
Created wheel for ccdproc: filename=ccdproc-2.1.0-py3-none-any.whl size=100410 sha256=f17d5744c7b7a80b10cec9af3a744ed267b22a8101d144e73d634540bb1cc212
Stored in directory: /root/.cache/pip/wheels/7e/42/8a/9c7af08da12f1fe3415c901c5153a955802a5be253fcd4b626
Building wheel for pyinotify (setup.py): started
Building wheel for pyinotify (setup.py): finished with status 'done'
Created wheel for pyinotify: filename=pyinotify-0.9.6-py3-none-any.whl size=25339 sha256=b046095d419919e66d89686b2bf6fc7e4a58c5fe5583379c581c5690fa7a804c
Stored in directory: /root/.cache/pip/wheels/9d/a0/4b/1a80814e4ad0b035c07831ea1b06b691046198492bbc5769b6
Building wheel for astroscrappy (setup.py): started
Building wheel for astroscrappy (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3las_u1a/astroscrappy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3las_u1a/astroscrappy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-x08cy2ke
cwd: /tmp/pip-install-3las_u1a/astroscrappy/
Complete output (58 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/astroscrappy
copying astroscrappy/__init__.py -> build/lib.linux-x86_64-3.8/astroscrappy
copying astroscrappy/_astropy_init.py -> build/lib.linux-x86_64-3.8/astroscrappy
copying astroscrappy/version.py -> build/lib.linux-x86_64-3.8/astroscrappy
copying astroscrappy/conftest.py -> build/lib.linux-x86_64-3.8/astroscrappy
copying astroscrappy/cython_version.py -> build/lib.linux-x86_64-3.8/astroscrappy
creating build/lib.linux-x86_64-3.8/astroscrappy/utils
copying astroscrappy/utils/__init__.py -> build/lib.linux-x86_64-3.8/astroscrappy/utils
copying astroscrappy/utils/setup_package.py -> build/lib.linux-x86_64-3.8/astroscrappy/utils
creating build/lib.linux-x86_64-3.8/astroscrappy/tests
copying astroscrappy/tests/__init__.py -> build/lib.linux-x86_64-3.8/astroscrappy/tests
copying astroscrappy/tests/fake_data.py -> build/lib.linux-x86_64-3.8/astroscrappy/tests
copying astroscrappy/tests/setup_package.py -> build/lib.linux-x86_64-3.8/astroscrappy/tests
copying astroscrappy/tests/test_astroscrappy.py -> build/lib.linux-x86_64-3.8/astroscrappy/tests
copying astroscrappy/tests/test_cleaning.py -> build/lib.linux-x86_64-3.8/astroscrappy/tests
copying astroscrappy/tests/test_utils.py -> build/lib.linux-x86_64-3.8/astroscrappy/tests
copying astroscrappy/_compiler.c -> build/lib.linux-x86_64-3.8/astroscrappy
copying astroscrappy/astroscrappy.c -> build/lib.linux-x86_64-3.8/astroscrappy
copying astroscrappy/utils/image_utils.c -> build/lib.linux-x86_64-3.8/astroscrappy/utils
copying astroscrappy/utils/medutils.c -> build/lib.linux-x86_64-3.8/astroscrappy/utils
copying astroscrappy/utils/median_utils.c -> build/lib.linux-x86_64-3.8/astroscrappy/utils
copying astroscrappy/utils/imutils.c -> build/lib.linux-x86_64-3.8/astroscrappy/utils
copying astroscrappy/tests/coveragerc -> build/lib.linux-x86_64-3.8/astroscrappy/tests
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-3las_u1a/astroscrappy/setup.py", line 133, in <module>
setup(name=PACKAGENAME,
File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-3las_u1a/astroscrappy/.eggs/astropy_helpers-2.0.11-py3.8.egg/astropy_helpers/commands/build_ext.py", line 296, in run
np_include = get_numpy_include_path()
File "/tmp/pip-install-3las_u1a/astroscrappy/.eggs/astropy_helpers-2.0.11-py3.8.egg/astropy_helpers/utils.py", line 89, in get_numpy_include_path
import numpy
ModuleNotFoundError: No module named 'numpy'
----------------------------------------
ERROR: Failed building wheel for astroscrappy
Running setup.py clean for astroscrappy
Building wheel for click-didyoumean (setup.py): started
Building wheel for click-didyoumean (setup.py): finished with status 'done'
Created wheel for click-didyoumean: filename=click_didyoumean-0.0.3-py3-none-any.whl size=2147 sha256=58bcd55a73356b4bb8f9d42454abc917fb28e27d2e9f2aceb49f5ce2b2544923
Stored in directory: /root/.cache/pip/wheels/c2/97/1e/c7dda0b8e9616dcd8df2a2882e556ef62879967ac31e0e3d04
Successfully built ccdproc pyinotify click-didyoumean
Failed to build astroscrappy
Installing collected packages: numpy, astropy, asgiref, astroscrappy, tifffile, scipy, decorator, networkx, pillow, six, cycler, certifi, kiwisolver, pyparsing, python-dateutil, matplotlib, imageio, PyWavelets, scikit-image, astropy-healpix, reproject, ccdproc, vine, click, pytz, billiard, amqp, kombu, wcwidth, prompt-toolkit, click-repl, click-didyoumean, celery, pyinotify, idna, chardet, urllib3, requests, tzdata, websockets
Running setup.py install for astroscrappy: started
Running setup.py install for astroscrappy: finished with status 'done'
DEPRECATION: astroscrappy was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
FROM python:3
ENV PYTHONUNBUFFERED 1
RUN apt-get update && apt-get clean
RUN pip install --upgrade pip
RUN mkdir /build
WORKDIR /build
COPY requirements.txt /build
RUN pip install -r requirements.txt
astropy
asgiref
ccdproc
celery
pyinotify
requests
tzdata
websockets