You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
[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
The text was updated successfully, but these errors were encountered:
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 usingsudo apt-get
to install something (i'm unable to see what), butapt-get
is not installed on my system, as the system package manager on fedora-flavored linux isyum
ordnf
.Standalone code to reproduce the issue
python3 -m venv .venv source .venv/bin/activate pip install pythonmonkey
Relevant log output or backtrace
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 toapt
(because the functionality is identical), but you'll have the same problem withpacman
on arch, and good luck with alpine and macos homebrew.The problem is identical with
sudo
, where it'sdoas
(from openBSD) on some distributions and who knows what else. Also, it's bad manners to do something as root duringpip 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
The text was updated successfully, but these errors were encountered: