summarylogtreecommitdiffstats
path: root/ceph-17.2.4-pybind-unmock-cythonize.patch
blob: 5a127fd06816204c0268c30ae065208c7944ab00 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
diff --git a/src/pybind/cephfs/setup.py b/src/pybind/cephfs/setup.py
index f6c2025f75d..8d788038e8f 100755
--- a/src/pybind/cephfs/setup.py
+++ b/src/pybind/cephfs/setup.py
@@ -169,13 +169,6 @@ except ImportError:
 else:
     source = "cephfs.pyx"
 
-# Disable cythonification if we're not really building anything
-if (len(sys.argv) >= 2 and
-        any(i in sys.argv[1:] for i in ('--help', 'clean', 'egg_info', '--version')
-            )):
-    def cythonize(x, **kwargs):
-        return x
-
 setup(
     name='cephfs',
     version=__version__,
diff --git a/src/pybind/rados/setup.py b/src/pybind/rados/setup.py
index 62b54d26b6c..5b1a9ade949 100755
--- a/src/pybind/rados/setup.py
+++ b/src/pybind/rados/setup.py
@@ -160,13 +160,6 @@ except ImportError:
 else:
     source = "rados.pyx"
 
-# Disable cythonification if we're not really building anything
-if (len(sys.argv) >= 2 and
-        any(i in sys.argv[1:] for i in ('--help', 'clean', 'egg_info', '--version')
-            )):
-    def cythonize(x, **kwargs):
-        return x
-
 setup(
     name='rados',
     version=__version__,
diff --git a/src/pybind/rbd/setup.py b/src/pybind/rbd/setup.py
index 1f20c3ed42f..93e8a97eb15 100755
--- a/src/pybind/rbd/setup.py
+++ b/src/pybind/rbd/setup.py
@@ -167,13 +167,6 @@ except ImportError:
 else:
     source = "rbd.pyx"
 
-# Disable cythonification if we're not really building anything
-if (len(sys.argv) >= 2 and
-        any(i in sys.argv[1:] for i in ('--help', 'clean', 'egg_info', '--version')
-            )):
-    def cythonize(x, **kwargs):
-        return x
-
 setup(
     name='rbd',
     version=__version__,
diff --git a/src/pybind/rgw/setup.py b/src/pybind/rgw/setup.py
index ed45399d394..92c7e650173 100755
--- a/src/pybind/rgw/setup.py
+++ b/src/pybind/rgw/setup.py
@@ -168,13 +168,6 @@ except ImportError:
 else:
     source = "rgw.pyx"
 
-# Disable cythonification if we're not really building anything
-if (len(sys.argv) >= 2 and
-        any(i in sys.argv[1:] for i in ('--help', 'clean', 'egg_info', '--version')
-            )):
-    def cythonize(x, **kwargs):
-        return x
-
 setup(
     name='rgw',
     version=__version__,