NREL / bifacial_radiance

Toolkit for working with RADIANCE for the ray-trace modeling of Bifacial Photovoltaics
https://bifacial-radiance.readthedocs.io
BSD 3-Clause "New" or "Revised" License
88 stars 47 forks source link

Deprecation warning using setup.py instead of pyproject.toml #538

Open cdeline opened 2 weeks ago

cdeline commented 2 weeks ago

Starting with pip 25.0 (January 1, 2025) we'll have to move from setup.py to pyproject.toml. Check pvlib-python for implementation example.

DEPRECATION: Legacy editable install of bifacial-radiance==0.4.4.dev0+g1d96a19.d20240828 from file:///F:/Documents/Python%20Scripts/bifacial_radiance (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457

cdeline commented 2 weeks ago

Additional related deprecation warning in docs\sphinx\source\conf.py:

UserWarning: Setuptools is replacing distutils.

This appears to be a workaround hack in conf.py due to a pandas error that is fixed in pd 1.4.x. If we bump to pandas>=1.4.1 then we can fix this deprecation by removing the call to distutils.