summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadomir Dopieralski <openstack@sheep.art.pl>2023-04-26 17:18:37 +0200
committerRadomir Dopieralski <openstack@sheep.art.pl>2023-04-26 17:18:37 +0200
commit1d687bef3d8cfad66213e8cf9e96e0aa17aae198 (patch)
tree3997b229cf6670ab1b80a81d2055131a88d62a4b
parent832747e67f718e9e4df165b048bc73fb6bd0bdc8 (diff)
downloadxstatic-git-1d687bef3d8cfad66213e8cf9e96e0aa17aae198.tar.gz
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.
-rw-r--r--setup.py1
1 files changed, 1 insertions, 0 deletions
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.