We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setuptools
1 parent 1431bef commit 12a1fc2Copy full SHA for 12a1fc2
1 file changed
src/virtualenv/discovery/py_info.py
@@ -152,7 +152,11 @@ def _distutils_install():
152
d = dist.Distribution({"script_args": "--no-user-cfg"}) # conf files not parsed so they do not hijack paths
153
if hasattr(sys, "_framework"):
154
sys._framework = None # disable macOS static paths for framework
155
- i = d.get_command_obj("install", create=True)
+
156
+ with warnings.catch_warnings(): # disable warning for PEP-632
157
+ warnings.simplefilter("ignore")
158
+ i = d.get_command_obj("install", create=True)
159
160
i.prefix = os.sep # paths generated are relative to prefix that contains the path sep, this makes it relative
161
i.finalize_options()
162
result = {key: (getattr(i, "install_{}".format(key))[1:]).lstrip(os.sep) for key in SCHEME_KEYS}
0 commit comments