Skip to content

Commit 4a0c1e4

Browse files
committed
removes mimalloc
1 parent ddd0522 commit 4a0c1e4

File tree

6 files changed

+4
-36
lines changed

6 files changed

+4
-36
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,14 @@ jobs:
2121
- os: ubuntu
2222
platform: linux
2323
target: aarch64
24-
# mimalloc not supported on manylinux2014 cross-compile container
25-
extra-build-args: --no-default-features
2624
- os: ubuntu
2725
platform: linux
2826
target: ppc64le
2927
interpreter: 3.9 3.10 3.11 3.12 3.13
30-
# mimalloc not supported on manylinux2014 cross-compile container
31-
extra-build-args: --no-default-features
3228
- os: ubuntu
3329
platform: linux
3430
target: s390x
3531
interpreter: 3.9 3.10 3.11 3.12 3.13
36-
# mimalloc not supported on manylinux2014 cross-compile container
37-
extra-build-args: --no-default-features
3832

3933
# musllinux
4034
- os: ubuntu

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ lint:
2828
test:
2929
PENDULUM_EXTENSIONS=0 poetry run pytest -q tests
3030
poetry run pytest -q tests
31+
32+
clean:
33+
rm src/pendulum/*.so

rust/Cargo.lock

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55

66
[lib]
77
name = "_pendulum"
8-
crate-type = ["cdylib", "rlib"]
8+
crate-type = ["cdylib"]
99

1010
[profile.release]
1111
lto = "fat"
@@ -15,8 +15,6 @@ overflow-checks = false
1515

1616
[dependencies]
1717
pyo3 = { version = "0.23", features = ["extension-module", "generate-import-lib"] }
18-
mimalloc = { version = "0.1.39", optional = true, default-features = false }
1918

2019
[features]
2120
extension-module = ["pyo3/extension-module"]
22-
default = ["mimalloc"]

rust/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
extern crate core;
22

3-
#[cfg(feature = "mimalloc")]
4-
#[global_allocator]
5-
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
6-
73
mod constants;
84
mod helpers;
95
mod parsing;

rust/src/python/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ pub fn _pendulum(_py: Python<'_>, m: &Bound<PyModule>) -> PyResult<()> {
2020
m.add_class::<Duration>()?;
2121
m.add_class::<PreciseDiff>()?;
2222

23-
#[cfg(not(feature = "mimalloc"))]
24-
m.setattr("__pendulum_default_allocator__", true)?; // uses setattr so this is not in __all__
25-
2623
Ok(())
2724
}

0 commit comments

Comments
 (0)