Compiling python on windows with vs

Thomas Schweikle tschweikle at bfs.de
Thu Jun 15 08:05:35 EDT 2023



Am Mi., 14.Juni.2023 um 15:10:50 schrieb Eryk Sun:
> On 6/14/23, Inada Naoki via Python-list <python-list at python.org> wrote:
>>> Since Git enables Windows NTFS case sensitivity while checking out sources
>>
>> I didn't know that. Would you give us a link to this feature?
>> As far as I know, `git config core.ignorecase` doesn't mean NTFS case
>> sensitive.
> 
> If a repo is cloned into a case-insensitive directory, then
> core.ignorecase should be enabled automatically. If a repo is cloned
> into a case-sensitive directory, then core.ignorecase should not be
> enabled automatically.
> 
> I searched through relevant issues on the Git for Windows repo on
> GitHub, and I found nothing to indicate that a capability to
> automatically enable NTFS case sensitivity has been added. I searched
> through the source of Git and Git for Windows, and I didn't find any
> references to WinAPI SetFileInformationByHandle: FileCaseSensitiveInfo
> or NTAPI NtSetInformationFile: FileCaseSensitiveInformation, nor the
> use of fsutil file setCaseSensitiveInfo.

In this case: not sure what is going on. In a git-shell on Windows:
If caseSensitiveInfo is disabled:
user at host MINGW64 ~/K
$ fsutil file queryCaseSensitiveInfo .
Das Attribut für Groß-/Kleinschreibung für das Verzeichnis
"C:\Users\user\K" ist deaktiviert.

$ git config --global -l
core.ignorecase=true

$ git clone https://github.com/python/cpython.git
Cloning into 'cpython'...
remote: Enumerating objects: 956870, done.
remote: Counting objects: 100% (1304/1304), done.
remote: Compressing objects: 100% (801/801), done.
Receiving objects: 100% (956870/956870), 557.02 MiB | 9.75 MiB/s, done.55566

Resolving deltas: 100% (760802/760802), done.
Updating files: 100% (4488/4488), done.

$ find . -type d -exec fsutil.exe file queryCaseSensitiveInfo {} \;
does not show any directory having caseSensitiveInfo enabled.

If caseSesitiveInfo is enabled:
user at host MINGW64 ~/K
$ fsutil file queryCaseSensitiveInfo .
Das Attribut für Groß-/Kleinschreibung für das Verzeichnis
"C:\Users\user\K" ist aktiviert.

$ git config --global -l
core.ignorecase=true

$ git clone https://github.com/python/cpython.git
Cloning into 'cpython'...
remote: Enumerating objects: 956870, done.
remote: Counting objects: 100% (1304/1304), done.
remote: Compressing objects: 100% (801/801), done.
Receiving objects: 100% (956870/956870), 557.02 MiB | 9.75 MiB/s, done.55566

Resolving deltas: 100% (760802/760802), done.
Updating files: 100% (4488/4488), done.

$ find . -type d -exec fsutil.exe file queryCaseSensitiveInfo {} \;
All directories created by git have caseSensitiveInfo enabled.

core.ignorecase is not regarded in any way. It does not mater if it is 
set or not.

-- 
Thomas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 321 bytes
Desc: OpenPGP digital signature
URL: <https://mail.python.org/pipermail/python-list/attachments/20230615/d0a7ca2e/attachment.sig>


More information about the Python-list mailing list