question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Install from tarball

See original GitHub issue

Checklist

  • I’m asking a question
  • I’ve looked through the README and FAQ for similar questions
  • I’ve searched the bugtracker for similar questions including closed ones

Question

Hi, Im install yt-dlp from tarball releases is it ok to ignore this message?

/home/rex/.cache/build/yt-dlp/src/yt-dlp/setup.py:41: UserWarning: Skipping file README.txt since it is not present. Try running `make pypi-files` first
  warnings.warn('Skipping file %s since it is not present. Try running `make pypi-files` first' % fn)
/usr/lib/python3.9/site-packages/setuptools/dist.py:484: UserWarning: Normalizing '2021.09.25' to '2021.9.25'
  warnings.warn(tmpl.format(**locals()))

Version

$ yt-dlp -v --version
2021.09.25
$ python -v --version
Python 3.9.7

local/python 3.9.7-1
local/python-pip 20.3.4-1
local/python-setuptools 1:57.4.0-2

I running use Arch Linux rm -Rdf pkg src && makepkg -s

makepkg

$ curl -fsL 'https://github.com/yt-dlp/yt-dlp/releases/download/2021.09.25/SHA2-256SUMS' | sha256sum -c --ignore-missing 
yt-dlp.tar.gz: OK

$ bsdtar -xzf ../yt-dlp.tar.gz
$ ls; cd yt-dlp
yt-dlp/

$ sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py
$ sed -i 's|etc/fish/completions|share/fish/vendor_completions.d|' setup.py
$ export PYTHONHASHSEED=0
$ python setup.py build
==> Starting build()...
/home/rex/.cache/build/yt-dlp/src/yt-dlp/setup.py:41: UserWarning: Skipping file README.txt since it is not present. Try running `make pypi-files` first
  warnings.warn('Skipping file %s since it is not present. Try running `make pypi-files` first' % fn)
/usr/lib/python3.9/site-packages/setuptools/dist.py:484: UserWarning: Normalizing '2021.09.25' to '2021.9.25'
  warnings.warn(tmpl.format(**locals()))
running build
running build_py
creating build
creating build/lib
creating build/lib/yt_dlp
copying yt_dlp/YoutubeDL.py -> build/lib/yt_dlp
...

# package()
$ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
==> Entering fakeroot environment...
==> Starting package()...
/home/rex/.cache/build/yt-dlp/src/yt-dlp/setup.py:41: UserWarning: Skipping file README.txt since it is not present. Try running `make pypi-files` first
  warnings.warn('Skipping file %s since it is not present. Try running `make pypi-files` first' % fn)
/usr/lib/python3.9/site-packages/setuptools/dist.py:484: UserWarning: Normalizing '2021.09.25' to '2021.9.25'
  warnings.warn(tmpl.format(**locals()))
running install
running install_lib
...
writing byte-compilation script '/tmp/tmp7v19xt_j.py'
/sbin/python /tmp/tmp7v19xt_j.py
removing /tmp/tmp7v19xt_j.py
running install_data
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/bash-completion
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/bash-completion/completions
copying completions/bash/yt-dlp -> /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/bash-completion/completions
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/zsh
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/zsh/site-functions
copying completions/zsh/_yt-dlp -> /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/zsh/site-functions
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/fish
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/fish/vendor_completions.d
copying completions/fish/yt-dlp.fish -> /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/fish/vendor_completions.d
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/doc
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/doc/yt_dlp
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/man
creating /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/man/man1
copying yt-dlp.1 -> /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/share/man/man1
running install_egg_info
running egg_info
creating yt_dlp.egg-info
writing yt_dlp.egg-info/PKG-INFO
writing dependency_links to yt_dlp.egg-info/dependency_links.txt
writing entry points to yt_dlp.egg-info/entry_points.txt
writing requirements to yt_dlp.egg-info/requires.txt
writing top-level names to yt_dlp.egg-info/top_level.txt
writing manifest file 'yt_dlp.egg-info/SOURCES.txt'
reading manifest file 'yt_dlp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'AUTHORS'
writing manifest file 'yt_dlp.egg-info/SOURCES.txt'
Copying yt_dlp.egg-info to /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/lib/python3.9/site-packages/yt_dlp-2021.9.25-py3.9.egg-info
running install_scripts
Installing yt-dlp script to /home/rex/.cache/build/yt-dlp/pkg/yt-dlp/usr/bin

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pukkandancommented, Sep 27, 2021

The file is however supposed to be in the tar. So I am marking this as a bug

0reactions
Roze061commented, Sep 27, 2021

can README.txt be added to the released tarball, I see README.txt on PyPI Wheel exists

I will close this issue, Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I install an R package from the source tarball on ...
I know this is an old question but it came up first in my Google search ... source tarball ( .tar.gz file)) will...
Read more >
How do I install a .tar.gz (or .tar.bz2) file? - Ask Ubuntu
The first thing you need to do is extract the files from inside the tar archive to a folder. Let's copy the files...
Read more >
Solved When we install a tarball (*.tar.gz), we issue | Chegg.com
The simple answer to the given question is: make Let's see why by seeing what each of the commands do: 1. tar -zxvf...
Read more >
How to install a tar.gz on Windows? - Super User
2 Answers 2 · Extract the tarball. · Look for a file named README or similar. · If there are files named something...
Read more >
Installing tarball without Make? - Unix & Linux Stack Exchange
If I understand your question correctly, you are attempting to install software from source? Do they package it as a .deb or as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found