File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ### Unreleased
4
+
5
+ - Fix regression in 1.10.0 where editable builds would be built in release mode
6
+
3
7
## 1.10.0 (2024-07-01)
4
8
### Packaging
5
9
- Extend macOS build flags to iOS, tvOS and watchOS. [ #436 ] ( https://github.com/PyO3/setuptools-rust/pull/436 )
Original file line number Diff line number Diff line change @@ -329,10 +329,7 @@ def build_extension(
329
329
def install_extension (
330
330
self , ext : RustExtension , dylib_paths : List ["_BuiltModule" ]
331
331
) -> None :
332
- debug_build = ext .debug if ext .debug is not None else self .inplace
333
- debug_build = self .debug if self .debug is not None else debug_build
334
- if self .release :
335
- debug_build = False
332
+ debug_build = self ._is_debug_build (ext )
336
333
337
334
# Ask build_ext where the shared library would go if it had built it,
338
335
# then copy it there.
@@ -502,8 +499,8 @@ def _detect_rust_target(
502
499
def _is_debug_build (self , ext : RustExtension ) -> bool :
503
500
if self .release :
504
501
return False
505
- elif self .debug is not None :
506
- return self . debug
502
+ elif self .debug :
503
+ return True
507
504
elif ext .debug is not None :
508
505
return ext .debug
509
506
else :
You can’t perform that action at this time.
0 commit comments