Skip to content

Editable install by user fails with permission error #2996

@agoose77

Description

@agoose77
  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • Docker python:3.8-alpine:

  • 1.1.0rc1:

  • pyproject.toml

  • Dockerfile

Issue

I am using docker to build a containerised application. Inside the container, I install poetry as root, whilst I perform the installation of my package as a non-root user. This fails after trying to write to the system site-packages directory. I have disabled virtualenvs for my use case.

This error was introduced between 1.0.10 and the RC release, and I think it likely that the recent change to editable installs was the culprit.
Traceback: https://gist.github.com/agoose77/7c117214ddab309e8ba2069ecc36701c

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions