1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-14 11:49:53 +03:00
aports/testing/py3-sphinxcontrib-gist/fix-build.patch
2023-03-01 23:37:51 +00:00

19 lines
539 B
Diff

a bit of an ugly hack to import the module properly
`from sphinxcontrib ...` doesn't work, because sphinxcontrib is defined by
all the other py3-sphinxcontrib-* packages that use (now depreacated) declare_namespace
as a namespace residing in sitedir, thus python doesn't see the local directory
diff --git a/setup.py b/setup.py
index b0bf058..e43693e 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,8 @@
#-*- coding:utf-8 -*-
+import sys
+del sys.modules['sphinxcontrib']
+
import setuptools
from sphinxcontrib import gist as pkg