Igalia / acacia

Library for inspecting accessibility APIs
https://igalia.github.io/acacia
GNU Lesser General Public License v2.1
8 stars 1 forks source link

Setuptools python install for linux #221

Open alice opened 6 months ago

spectranaut commented 6 months ago

ooo I know this is still in draft but I couldn't resist trying, and I got an error that I'm surprised you didn't run into?

I suppose it's time to understand more about python venvs.

removing build/bdist.linux-x86_64/wheel
Successfully built acacia_atspi-0.0.1.tar.gz and acacia_atspi-0.0.1-cp311-cp311-linux_x86_64.whl
[100%] Built target python_acacia_atspi
[100%] Built target rename_init_py
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
make[3]: *** [lib/atspi/CMakeFiles/install_python.dir/build.make:70: lib/atspi/CMakeFiles/install_python] Error 1
make[2]: *** [CMakeFiles/Makefile2:1039: lib/atspi/CMakeFiles/install_python.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1046: lib/atspi/CMakeFiles/install_python.dir/rule] Error 2
make: *** [Makefile:582: install_python] Error 2