Skip to content

Conversation

hongxu-jia
Copy link
Contributor

@hongxu-jia hongxu-jia commented Sep 26, 2025

The type of new_value is either npy_timedelta' or int64_t'

In build/pandas/_libs/tslibs/timedeltas.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/timedeltas.pyx.c
...
npy_timedelta __pyx_v_new_value;
...

In build/pandas/_libs/tslibs/timedeltas.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/timedeltas.pyx.c
...
__pyx_t_5numpy_int64_t __pyx_v_new_value;
...

Explicitly define it as int64_t to assure the generated source is reproducibility [1] between builds

[1] https://reproducible-builds.org/

The type of new_value is either `npy_timedelta' or `int64_t'
In build/pandas/_libs/tslibs/timedeltas.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/timedeltas.pyx.c
..
npy_timedelta __pyx_v_new_value;
...

In build/pandas/_libs/tslibs/timedeltas.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/timedeltas.pyx.c
...
__pyx_t_5numpy_int64_t __pyx_v_new_value;
...

Explicitly define it as int64_t to assure the generated source is reproducibility [1]
between builds

[1] https://reproducible-builds.org/
Signed-off-by: Hongxu Jia <[email protected]>
@mroeschke mroeschke added the Internals Related to non-user accessible pandas implementation label Oct 5, 2025
@mroeschke mroeschke added this to the 3.0 milestone Oct 5, 2025
@mroeschke mroeschke merged commit 820982b into pandas-dev:main Oct 5, 2025
47 checks passed
@mroeschke
Copy link
Member

Thanks @hongxu-jia

jzwick pushed a commit to jzwick/pandas that referenced this pull request Oct 8, 2025
Signed-off-by: Hongxu Jia <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants