aajanki / yle-dl

Download videos from Yle servers
https://aajanki.github.io/yle-dl/index-en.html
GNU General Public License v3.0
302 stars 52 forks source link

"ERROR: Failed building wheel for xattr" in Fedora 39 #350

Closed tmu-k closed 7 months ago

tmu-k commented 7 months ago

Just installed Fedora 39 desktop and when I try to install yle-dl the installation fails with error:

"ERROR: Failed building wheel for xattr ERROR: Could not build wheels for xattr, which is required to install pyproject.toml-based projects"

If I comment out ""xattr;sys_platform != \"win32\""," from pyproject.toml I'm able to do the installation with command: pip3 install --user .

Not sure what has changed between Fedora 38 -> 39 because I have had no issues with yle-dl earlier... What is that xattr used for?

aajanki commented 7 months ago

Xattr is used to store the original source URL and other metadata as extended attributes of output files. It's safe to install yle-dl without xattr if you don't need such metadata.

I guess Fedora 38 provided a Python package for xattr but Fedora 39 doesn't anymore. Pip install tries to build a wheel package for xattr if one is not installed, but that succeeds only if you have the necessary development tools available.

I will mark xattr as an optional depedency. That should allow the installation to proceed without errors on Fedore 39.

aajanki commented 7 months ago

xattr is now an optional dependency.