-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Preserving timestamps on copy #3201
Comments
@xavfernandez I would like to take this up. Could you point me where this happens? |
I'm not really sure what the use case of @akhmerov is. |
We observed this behavior when using pypi install. I believe the timestamps get modified when files are copied from cache dir to build dir. The package suffering from the issue was |
@akhmerov Correct me if I'm wrong. For example, the On PyPI, kwant is only available as a |
To reproduce the problem, execute something like
On my (and also @akhmerov's) machine, the build fails with a message like this:
The reason is that all the files have the same timestamp:
If you download and untar https://pypi.python.org/packages/source/k/kwant/kwant-1.1.0.tar.gz manually, the timestamps are of course preserved. Note that we now work around this problem by disabling cythonization by default. But I think it would be still nice if the problem was fixed in pip. |
We're using timestamps to determine whether the
.c
files generated with cython are up to date with the source.pyx
files. However pip seems to modify timestamps (I suppose when copying the files from cache dir to build dir). Would it be possible to preserve the timestamps on copy?The text was updated successfully, but these errors were encountered: