Created
January 29, 2025 14:20
-
-
Save kmaehashi/8d1128d1dc3b022d798ccd19425f7c58 to your computer and use it in GitHub Desktop.
setuptools/distutils msvc discovery notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import setuptools._distutils._msvccompiler | |
c = setuptools._distutils._msvccompiler.MSVCCompiler() | |
c.initialize() | |
print(c.cc) | |
## ---- | |
import setuptools._distutils._msvccompiler as dc | |
import json | |
dc._get_vcvars_spec("win-amd64", "win-amd64") | |
print(json.dumps(dc._get_vc_env("x86_amd64"), indent=2)) | |
## ---- | |
import setuptools.msvc | |
print(setuptools.msvc.EnvironmentInfo('AMD64').VCTools) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment