File: non_namespace_package.patch

package info (click to toggle)
rpy2 3.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,388 kB
  • sloc: python: 18,450; ansic: 492; makefile: 197; sh: 166
file content (25 lines) | stat: -rw-r--r-- 696 bytes parent folder | download
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]