Remove pkg_resources import from setup.py:
|
import pkg_resources |
|
|
|
|
|
with open('requirements.txt', 'r') as reqs: |
|
install_requires = [ |
|
str(requirement) |
|
for requirement |
|
in pkg_resources.parse_requirements(reqs) |
|
] |
It breaks installation with newer Python and newer setuptools versions.
Python 3.12 has removed pkg_resources from the standard library and moved it to setuptools (https://docs.python.org/3/whatsnew/3.12.html)
The latest setuptools v82.0.0 removed pkg_resources (https://setuptools.pypa.io/en/stable/history.html#v82-0-0).
Proposed solution: just read the requirements.txt lines into a list of strings and let setuptools do the parsing.
Remove
pkg_resourcesimport fromsetup.py:eoxserver/setup.py
Lines 3 to 11 in 742d08b
It breaks installation with newer Python and newer
setuptoolsversions.Python 3.12 has removed
pkg_resourcesfrom the standard library and moved it tosetuptools(https://docs.python.org/3/whatsnew/3.12.html)The latest
setuptoolsv82.0.0 removedpkg_resources(https://setuptools.pypa.io/en/stable/history.html#v82-0-0).Proposed solution: just read the
requirements.txtlines into a list of strings and letsetuptoolsdo the parsing.