Mercurial > hg
comparison setup.py @ 7056:2c1f18b88b6a
osutil: implementation for Win32
Use information provided by FindFile... Win32 calls
to generate stat information without lstat call per file.
rwx bits in st_mode are ignored as they are not stored in Win32 fs
and Mercurial does not use them
Unicode path / path names over _MAX_PATH are intentionally not supported.
author | Petr Kodl <petrkodl@gmail.com> |
---|---|
date | Sun, 14 Sep 2008 09:57:33 -0400 |
parents | 8fee8ff13d37 |
children | 2fdbf2ccd03a |
comparison
equal
deleted
inserted
replaced
7055:0f4564b4cc2c | 7056:2c1f18b88b6a |
---|---|
100 | 100 |
101 packages = ['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert', | 101 packages = ['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert', |
102 'hgext.highlight'] | 102 'hgext.highlight'] |
103 | 103 |
104 try: | 104 try: |
105 import msvcrt | |
106 ext_modules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'])) | |
107 except ImportError: | |
108 pass | |
109 | |
110 try: | |
105 import posix | 111 import posix |
106 ext_modules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'])) | 112 ext_modules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'])) |
107 | 113 |
108 if sys.platform == 'linux2' and os.uname()[2] > '2.6': | 114 if sys.platform == 'linux2' and os.uname()[2] > '2.6': |
109 # The inotify extension is only usable with Linux 2.6 kernels. | 115 # The inotify extension is only usable with Linux 2.6 kernels. |