careful-address-89803
07/01/2022, 5:26 AMmsal-extensions
, it has a dependency on portalocker, which has a dependency on pywin32
on windows. If I have msal-extensions
listed directly in a python_requirment
, it thinks that it always needs pywin32
. But if instead I copy the dependencies that it requests, it correctly identifies that it only needs pywin32
on windows. Details and repro in threadcareful-address-89803
07/01/2022, 5:27 AMpython_requirement(
name="a",
requirements=[
"msal-extensions"
],
resolve="a",
)
careful-address-89803
07/01/2022, 5:28 AMpython_requirement(
name="a",
requirements=[
'msal>=0.4.1,<2.0.0',
"portalocker<3,>=1.0;python_version>='3.5' and platform_system!='Windows'",
"portalocker<2,>=1.0;python_version=='2.7' and platform_system!='Windows'",
"portalocker<3,>=1.6;python_version>='3.5' and platform_system=='Windows'",
"portalocker<2,>=1.6;python_version=='2.7' and platform_system=='Windows'",
"pathlib2;python_version<'3.0'",
],
resolve="a",
)
careful-address-89803
07/01/2022, 5:44 AMmsal-extensions
with its dependencies, it also doesn't work.
This is the situation on pants 2.11 and on the latest.
in the lockfile, with poetry generator, working looks like: pywin32==304; python_version >= "3.5" and platform_system == "Windows"
, and not working looks like pywin32==304 \
.
Any help is appreciatedcareful-address-89803
07/01/2022, 5:56 AMcareful-address-89803
07/01/2022, 3:47 PMcareful-address-89803
07/01/2022, 4:10 PM[poetry]
version = "poetry>=1.1.13"
ezpz, build succeeds