Skip to content

does not work on Ubuntu-based systems #22

@woutervh

Description

@woutervh

Today I discovered Ubuntu ships the system python with a sitecustomize
that always takes precedence over the pip installed "sitecustomize-entrypoints", even in a virtualenv

└─$ python3
Python 3.11.6 (main, Oct  8 2023, 05:06:43) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sitecustomize as sc
>>> sc.__file__
'/usr/lib/python3.11/sitecustomize.py'
cat  /usr/lib/python3.11/sitecustomize.py:

# install the apport exception handler if available
try:
    import apport_python_hook
except ImportError:
    pass
else:
    apport_python_hook.install()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions