New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on OSX the file creation date not available in os.stat #52250
Comments
OSX has a different interpretation of the file creation date. |
To be more precise: see bpo-8001. The OSX 10.5 introduces a new version of stat 'stat64' that exposes additional information to posix-style programs, amongst which is the file creation date. This field is not present in earlier editions of OSX and is also not present on other platforms. That is, the field is not the same as the "ctime" field which contains the timestamp for the last metadata change for a file. |
I've done some research: the st_birthtime field is available when the python executable is build using MACOSX_DEPLOYMENT_TARGET=10.5 (or later), not for 10.4. Adding support for st_birthtime for MACOSX_DEPLOYMENT_TARGET=10.4 is possible but requires significant code duplication in posixmodule.c. IMO it adding this support is not worth the effort or the additional code complexity. |
On Mar 7, 2010, at 13:08, Ronald Oussoren wrote:
I do agree. F |
I'm closing this issue as won't fix. The additional fields are available if you build from source and target 10.5 or later (set 'MACOSX_DEPLOYMENT_TARGET=10.5' when you run configure). My current plan is to have two installers for python 2.7 and 3.2: one is a 32-bit only version that runs on OSX 10.3 or later and one will be be a new version that supports 64-bit x86 code as well and requires OSX 10.5. This new installer won't suffer from this issue. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: