[Bug 2035040] [NEW] Included sitecustomize.py breaks any package-defined sitecustomize.py

Gresm 2035040 at bugs.launchpad.net
Sun Sep 10 21:45:09 UTC 2023


Public bug reported:

An example of a real package that breaks because of pre-defined
sitecustomize.py: https://pypi.org/project/sitecustomize-entrypoints/
When importing sitecustomize (as sitecustomize-entrypoints define it and
it has some functionalities) instead of an expected module from
sitecustomize-entrypoints, the included one is imported. This file is
not included in python source distribution nor (likely) other python
distributions.

** Affects: python3.10 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.10 in Ubuntu.
https://bugs.launchpad.net/bugs/2035040

Title:
  Included sitecustomize.py breaks any package-defined sitecustomize.py

Status in python3.10 package in Ubuntu:
  New

Bug description:
  An example of a real package that breaks because of pre-defined
  sitecustomize.py: https://pypi.org/project/sitecustomize-entrypoints/
  When importing sitecustomize (as sitecustomize-entrypoints define it
  and it has some functionalities) instead of an expected module from
  sitecustomize-entrypoints, the included one is imported. This file is
  not included in python source distribution nor (likely) other python
  distributions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.10/+bug/2035040/+subscriptions




More information about the foundations-bugs mailing list