This is a bug fix release that fixes a dependency issue that would lead a failed installation.
The problem is caused by the logging module, which was required for installation. This dependency was removed since Python 3.8 SPL comes with a logging module. For example, when one wants to install the package with
pip install fasttrees
then the following traceback might occur.
Collecting fasttrees
Downloading fasttrees-1.3.0-py3-none-any.whl.metadata (4.0 kB)
Collecting numpy<=1.19.5 (from fasttrees)
Downloading numpy-1.19.5-cp38-cp38-manylinux2010_x86_64.whl (14.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.9/14.9 MB 8.2 MB/s eta 0:00:00
Collecting pandas<=0.25.3 (from fasttrees)
Downloading pandas-0.25.3-cp38-cp38-manylinux1_x86_64.whl (10.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.4/10.4 MB 8.8 MB/s eta 0:00:00
Collecting scikit-learn<=0.23.2 (from fasttrees)
Downloading scikit_learn-0.23.2-cp38-cp38-manylinux1_x86_64.whl (6.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.8/6.8 MB 5.6 MB/s eta 0:00:00
Collecting logging (from fasttrees)
Downloading logging-0.4.9.6.tar.gz (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.0/96.0 kB 7.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 14, in <module>
File "/home/bachhofner/anaconda3/envs/fasttrees/lib/python3.8/site-packages/setuptools/__init__.py", line 7, in <module>
import _distutils_hack.override noqa: F401
File "/home/bachhofner/anaconda3/envs/fasttrees/lib/python3.8/site-packages/_distutils_hack/override.py", line 1, in <module>
__import__('_distutils_hack').do_override()
File "/home/bachhofner/anaconda3/envs/fasttrees/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 77, in do_override
ensure_local_distutils()
File "/home/bachhofner/anaconda3/envs/fasttrees/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 63, in ensure_local_distutils
core = importlib.import_module('distutils.core')
File "/home/bachhofner/anaconda3/envs/fasttrees/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/bachhofner/anaconda3/envs/fasttrees/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 22, in <module>
from .dist import Distribution
File "/home/bachhofner/anaconda3/envs/fasttrees/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 12, in <module>
import logging
File "/tmp/pip-install-11h8jio6/logging_9be4527040d041e3be018b5961b53eb7/logging/__init__.py", line 618
raise NotImplementedError, 'emit must be implemented '\
^
SyntaxError: invalid syntax
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
**Full Changelog**: https://github.com/fasttrees/fasttrees/compare/v1.3.0...v1.3.1