In the Django project, we avoid these problems for the libraries that we do bundle by deferring to system-level packages, and only using our bundled versions if there aren't other copies avaliable. For example, here's how we do it with the unittest library:
In the Django project, we avoid these problems for the libraries that we do bundle by deferring to system-level packages, and only using our bundled versions if there aren't other copies avaliable. For example, here's how we do it with the unittest library:
https:/ /github. com/django/ django/ blob/master/ django/ utils/unittest/ __init_ _.py