Skip to content

Conversation

@rajputa-deshaw
Copy link

The copy_file function uses st[ST_MTIME] when copying timestamps which is an int
whereas the newer function uses os.path.getmtime which returns a float to check if
a file is outdated. This causes the copied file to always be older than the source file.

This commit updates the copy_file function to use st.st_mtime which is the float value.

Ref: pypa/setuptools#5079

@rajputa-deshaw
Copy link
Author

@Avasam Could you please approve the test workflow?

@Avasam
Copy link
Contributor

Avasam commented Oct 26, 2025

@Avasam Could you please approve the test workflow?

Whilst I have contributed to, I am not a maintainer of distutils (or setuptools). I cannot approve PRs or workflows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants