Skip to content

Problems with editable installs and setuptools >=64 #461

@wch

Description

@wch

With Python 3.11.3, I installed Shiny in a venv for another project, with pip install -e ../py-shiny, but when I did this, the new project couldn't find the py.typed file.

I'm not 100% sure, but I believe that this is because setuptools >=64 uses a new mechanism instead of egg-link.
See:

Apparently one can also install with strict mode (https://setuptools.pypa.io/en/latest/userguide/development_mode.html#strict-editable-installs):

pip install -e ../py-shiny --config-settings editable_mode=strict

I tried this with py-shiny, and it resulted in the JS and CSS web assets not being available when running an app. So we'll probably want to fix it in that case.

What does work for now is to use compat mode:

pip install -e ../py-shiny --config-settings editable_mode=compat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions