Skip to content

Commit 5ac34b4

Browse files
authored
Build _dbm as a shared module (#838)
Partially addresses #836.
1 parent d0969cd commit 5ac34b4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cpython-unix/extension-modules.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ _dbm:
246246
- name: db
247247
targets:
248248
- .*-unknown-linux-.*
249+
# Allow people who want to avoid the Sleepycat license to remove _dbm entirely.
250+
build-mode: shared
249251

250252
_decimal:
251253
sources:

src/validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ const GLOBAL_EXTENSIONS_WINDOWS_PRE_3_13: &[&str] = &["_msi"];
913913
const GLOBAL_EXTENSIONS_WINDOWS_NO_STATIC: &[&str] = &["_testinternalcapi", "_tkinter"];
914914

915915
/// Extension modules that should be built as shared libraries.
916-
const SHARED_LIBRARY_EXTENSIONS: &[&str] = &["_crypt", "_ctypes_test", "_tkinter"];
916+
const SHARED_LIBRARY_EXTENSIONS: &[&str] = &["_crypt", "_ctypes_test", "_dbm", "_tkinter"];
917917

918918
const PYTHON_VERIFICATIONS: &str = include_str!("verify_distribution.py");
919919

0 commit comments

Comments
 (0)