[pypy-issue] Issue #2568: os.stat needs st_ino, st_dev on windows (pypy/pypy)

mattip issues-reply at bitbucket.org
Fri Jun 2 03:51:02 EDT 2017


New issue 2568: os.stat needs st_ino, st_dev on windows
https://bitbucket.org/pypy/pypy/issues/2568/osstat-needs-st_ino-st_dev-on-windows

mattip:

CPython 2.7.13
```
#!python

python2.exe -c "import os; print os.stat(r'c:\randomfile')"
nt.stat_result(st_mode=33206, st_ino=0L, st_dev=0L, st_nlink=0, st_uid=0, st_gid=0, 
               st_size=655L, st_atime=1494398674L, st_mtime=1496388302L, st_ctime=1494398674L)


```

CPython 3.6.0
```
#!python

python3.exe -c "import os; print(os.stat(r'c:\randomfile'))"                                                 
os.stat_result(st_mode=33206, st_ino=562949954083371, st_dev=2623564768, st_nlink=1, st_uid=0, st_gid=0, 
               st_size=655, st_atime=1494398674, st_mtime=1496388302, st_ctime=1494398674)


```
PyPy 3.5 behaves like python2, not python3. This causes ``os.path.samestat`` to fail, which is used by cffi, which is causing ``build_cffi_imports`` to fail during packaging, which is preventing us shipping a win32 beta version




More information about the pypy-issue mailing list