Package Details: python-bs4 0.0.2-3

Git Clone URL: https://aur.archlinux.org/python-bs4.git (read-only, click to copy)
Package Base: python-bs4
Description: This is a dummy package designed to prevent namesquatting on PyPI. You should install beautifulsoup4 instead.
Upstream URL: https://pypi.python.org/pypi/bs4/
Keywords: beautifulsoup kludge lib library python
Licenses: custom:unknown
Submitter: Network_Jack
Maintainer: stickynotememo
Last Packager: Network_Jack
Votes: 9
Popularity: 0.102374
First Submitted: 2020-06-27 18:42 (UTC)
Last Updated: 2025-07-14 15:09 (UTC)

Pinned Comments

Network_Jack commented on 2024-03-26 00:41 (UTC) (edited on 2025-07-14 15:07 (UTC) by Network_Jack)

ATTENTION: This isn't the "real" beautiful soup package.

It exists because a checks if the module "bs4" is installed, and will exit if it is not.

For most programs using beautiful soup, the package python-beautifulsoup4 should be used instead. This package is a weird workaround for a unique issue. If you find other programs that also have this issue, you are free to use this workaround. Otherwise it should be avoided.

Thank you @yochananmarqos

Latest Comments

Network_Jack commented on 2024-03-26 00:41 (UTC) (edited on 2025-07-14 15:07 (UTC) by Network_Jack)

ATTENTION: This isn't the "real" beautiful soup package.

It exists because a checks if the module "bs4" is installed, and will exit if it is not.

For most programs using beautiful soup, the package python-beautifulsoup4 should be used instead. This package is a weird workaround for a unique issue. If you find other programs that also have this issue, you are free to use this workaround. Otherwise it should be avoided.

Thank you @yochananmarqos

yochananmarqos commented on 2024-03-18 23:26 (UTC) (edited on 2024-03-18 23:29 (UTC) by yochananmarqos)

PSA for AUR package maintainers with packages depending on python-bs4: This is an empty package. Click the URL above for more info:

This is a dummy package designed to prevent namesquatting on PyPI. You should install beautifulsoup4 instead.

AUR packages supposedly depending on this need to depend on python-beautifulsoup4 instead which provides the bs4 Python module.

dreieck commented on 2023-05-07 15:47 (UTC)

I think you should switch to using python -m build and python -m installer instead of invoking setup.py directly:

/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!

e.g. (just the idea, not tested with your package):

[...]
makedepends=(
  'python-build'
  'python-installer'
  'python-wheel'
  'python-setuptools'
  [...]
)
[...]
build() {
  [...]
  python -m build --wheel --no-isolation
  # maybe build documentation, ...
  [...]
}

package() {
  [...]
  python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
  [...]
  # Maybe install documentation, license, ...
  [...]
}

Regards!