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

prefix always ends with /local/ on ubuntu #176

Closed
nlgranger opened this issue Mar 29, 2023 · 3 comments
Closed

prefix always ends with /local/ on ubuntu #176

nlgranger opened this issue Mar 29, 2023 · 3 comments

Comments

@nlgranger
Copy link

Inside an ubuntu:22.04 container, I have installed build, installer and virtualenv in the latest version using pip.
The prefix value is concatenated with /local/

Steps to reproduce:

docker run --rm -it ubuntu:22.04
apt update
apt install python3-pip git
pip install -U build installer virtualenv
git clone https://github.com/pypa/installer.git
cd installer/
python3 -m build --wheel
python3 -m installer dist/*.whl --destdir=sysroot --prefix=/someprefix
find sysroot/
@nlgranger
Copy link
Author

On debian it works normally.

@nlgranger nlgranger changed the title prefix always ends with /local/ prefix always ends with /local/ on ubuntu Mar 29, 2023
@pradyunsg
Copy link
Member

Nothing that we can do here. This is an issue with the Python that ships with Ubuntu and the way they've modified it that breaks things.

https://discuss.python.org/t/linux-distro-patches-to-sysconfig-are-changing-pip-install-prefix-outside-virtual-environments/18240

@nlgranger
Copy link
Author

I thought installer wasn't affected because it runs inside a virtualenv. Thanks for the pointer.

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

No branches or pull requests

2 participants