1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Make this a normal package
The current packaging can't correctly build it as a namespace package,
causing different imports of the same file to count as different modules
and hence type mismatch errors
(see Salsa history of 3.6.2)
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed
--- /dev/null
+++ a/src/rpy2/__init__.py
@@ -0,0 +1 @@
+# this exists to make this a normal, not namespace, package
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -57,7 +57,7 @@ Tracker = "https://github.com/rpy2/rpy2/issue"
[tool.setuptools.packages.find]
where = ["src"]
-include = ["rpy2.*"]
+include = ["rpy2", "rpy2.*"]
namespaces = true
[tool.pytest.ini_options]
|