From 1d687bef3d8cfad66213e8cf9e96e0aa17aae198 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Wed, 26 Apr 2023 17:18:37 +0200 Subject: Explicitly import pkg_resources in setup.py Since recent versions of setuptools no longer impiort pkg_resources internally, and the xstatic namespace mechanism relies on that package being imported, we need to explicitly import it in setup.py now, otherwise we can randomly get failures when installing multiple xstatic packages as dependencies, depending on the order in which pypi decides to install them. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 46689eb..6bdd368 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ XStatic - setup.py import os from setuptools import setup, find_packages +import pkg_resources # The README.txt file should be written in reST so that PyPI can use # it to generate your project's PyPI page. -- cgit v1.2.1