[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#204728: example



here is a small example:

--- begin foo.py ---
def foo(s):
    print s
--- end foo.py ---

--- begin setup.py ---
from distutils.core import setup
setup(name="foo",
      version="1.0",
      py_modules=["foo"])
--- end setup.py ---

$ python setup.py build
running build
running build_py
creating build
creating build/lib
copying foo.py -> build/lib
$ ls -l build/lib
total 4
-rw-r--r--    1 doko     doko           22 Jan  1  1970 foo.py


in python/Modules/posixmodule.c:1945 utimes is called with the correct
arguments. looking at the strace, I see:

utime("build/lib/foo.py", [1970/01/01-01:00:01, 1970/01/01-01:00:01]) = 0

called by glibc's utimes wrapper. avoiding the use of utimes and
directly calling utime is ok.




Reply to: