Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install pythonmonkey requires both sudo and apt-get #461

Open
themoonisacheese opened this issue Dec 10, 2024 · 0 comments
Open

pip install pythonmonkey requires both sudo and apt-get #461

themoonisacheese opened this issue Dec 10, 2024 · 0 comments

Comments

@themoonisacheese
Copy link

themoonisacheese commented Dec 10, 2024

Issue type

Build/Install

How did you install PythonMonkey?

Installed from pip

OS platform and distribution

AlmaLinux 8.10

Python version (python --version)

3.10

PythonMonkey version (pip show pythonmonkey)

N/A

Bug Description

In a fresh venv, running pip install pythonmonkey fetches dependencies, then tries building the wheel. This fails because it tries using sudo apt-get to install something (i'm unable to see what), but apt-get is not installed on my system, as the system package manager on fedora-flavored linux is yum or dnf.

Standalone code to reproduce the issue

python3 -m venv .venv
source .venv/bin/activate
pip install pythonmonkey

Relevant log output or backtrace

[several lines trucated]
Building wheels for collected packages: pythonmonkey
  Building wheel for pythonmonkey (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pythonmonkey (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      Installing dependencies
      Installing apt packages
      sudo: apt-get : commande introuvable
[several more lines trucated]

Additional info if applicable

This is not localized to fedora-flavored systems. in fact, pretty much only ubuntu-flavored distributions still provide apt-get. Debian provides it as an alias to apt (because the functionality is identical), but you'll have the same problem with pacman on arch, and good luck with alpine and macos homebrew.

The problem is identical with sudo, where it's doas (from openBSD) on some distributions and who knows what else. Also, it's bad manners to do something as root during pip install. pip install shouldn't modify the system, and compromise to the package repo could result in several systems being owned for no good reason.

Let users install requirements that fall outside pip by themselves, and in the install instructions, simply list what is necessary.

What branch of PythonMonkey were you developing on? (If applicable)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant