File tree 1 file changed +10
-12
lines changed
1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -188,15 +188,18 @@ def parse_cflags(raw_flags):
188
188
library_dirs = extension_extra ["library_dirs" ],
189
189
)
190
190
191
+ compiler_directives = {
192
+ "c_string_type" : "str" ,
193
+ "c_string_encoding" : "ascii" ,
194
+ "embedsignature" : True ,
195
+ "binding" : False ,
196
+ "language_level" : 3 ,
197
+ }
198
+
191
199
# Add the cythonized loudnorm extension to ext_modules
192
200
ext_modules = cythonize (
193
201
loudnorm_extension ,
194
- compiler_directives = {
195
- "c_string_type" : "str" ,
196
- "c_string_encoding" : "ascii" ,
197
- "embedsignature" : True ,
198
- "language_level" : 3 ,
199
- },
202
+ compiler_directives = compiler_directives ,
200
203
build_dir = "src" ,
201
204
include_path = ["include" ],
202
205
)
@@ -223,12 +226,7 @@ def parse_cflags(raw_flags):
223
226
library_dirs = extension_extra ["library_dirs" ],
224
227
sources = [pyx_path ],
225
228
),
226
- compiler_directives = {
227
- "c_string_type" : "str" ,
228
- "c_string_encoding" : "ascii" ,
229
- "embedsignature" : True ,
230
- "language_level" : 3 ,
231
- },
229
+ compiler_directives = compiler_directives ,
232
230
build_dir = "src" ,
233
231
include_path = ["include" ],
234
232
)
You can’t perform that action at this time.
0 commit comments