skyfielders / python-skyfield

Elegant astronomy for Python
MIT License
1.38k stars 208 forks source link

sgp4 deprecation warning when installing Skyfield #849

Closed aendie closed 1 year ago

aendie commented 1 year ago

After an initial install of Python, the first time Skyfield is installed you get a DEPRECATION warning related to the sgp4 package, which is a required dependency. The following screenshot is from Windows 10 (the same happens with Windows 11):

install_skyfield

Just to be sure that it has nothing to do with the older default version of pip, I uninstalled everything with pip uninstall skyfield jplephem numpy sgp4 --no-cache-dir, upgraded pip and re-ran a clean install process. It gave the same DEPRECATION warning (in muddy almost unreadable yellow):

install_skyfield_2

With thanks for calling your attention to this.

brandon-rhodes commented 1 year ago

I found the following the instructions in the issue linked to in the error message:

https://github.com/pypa/pip/issues/8559

“If you're the package author, make sure you can install the package with --use-pep517 passed into pip.”

I just tried it here on my machine, and that option passed to pip resulted in a successful compile! So it looks like we will be all set when the next version of pip comes out, and that option becomes the default. Thanks for letting me know about the warning so we could double-check its behavior.