Skip to content

Commit f42ae5b

Browse files
authored
Merge pull request #460 from PyO3/release-1.10.1
release: 1.10.1
2 parents 7b0dd24 + df30297 commit f42ae5b

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[bumpversion]
22
commit = True
33
tag = False
4-
current_version = 1.10.0
4+
current_version = 1.10.1
55
message = release: {new_version}
66

77
[bumpversion:file:pyproject.toml]

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

3-
## 1.10.0 (2024-07-01)
3+
## 1.10.1 (2024-08-04)
4+
### Fixed
5+
- Fix regression in 1.10.0 where editable builds would be built in release mode
6+
7+
## 1.10.0 (2024-08-03)
48
### Packaging
59
- Extend macOS build flags to iOS, tvOS and watchOS. [#436](https://github.com/PyO3/setuptools-rust/pull/436)
610
- Support Python 3.13. [#446](https://github.com/PyO3/setuptools-rust/pull/446)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "setuptools-rust"
3-
version = "1.10.0"
3+
version = "1.10.1"
44
description = "Setuptools Rust extension plugin"
55
readme = "README.md"
66
requires-python = ">=3.8"

setuptools_rust/build.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,7 @@ def build_extension(
329329
def install_extension(
330330
self, ext: RustExtension, dylib_paths: List["_BuiltModule"]
331331
) -> 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)
336333

337334
# Ask build_ext where the shared library would go if it had built it,
338335
# then copy it there.
@@ -502,8 +499,8 @@ def _detect_rust_target(
502499
def _is_debug_build(self, ext: RustExtension) -> bool:
503500
if self.release:
504501
return False
505-
elif self.debug is not None:
506-
return self.debug
502+
elif self.debug:
503+
return True
507504
elif ext.debug is not None:
508505
return ext.debug
509506
else:

setuptools_rust/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = version = "1.10.0"
1+
__version__ = version = "1.10.1"
22
__version_tuple__ = version_tuple = tuple(
33
map(lambda x: int(x[1]) if x[0] < 3 else x[1], enumerate(__version__.split(".")))
44
)

0 commit comments

Comments
 (0)