few-stone-30898
07/29/2024, 11:48 AMgenerate-lockfiles
, I'm getting a semi-helpful
ProcessExecutionFailure: Process 'Generate lockfile for python-default' failed with exit code 1.
stderr: <lengthy pex call>
and STDERR:
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
I have tried down-pinning setuptools, both in the offending resolve(s) themselves, as well as globally by creating a resolve for setuptools - though the former seems to be ignored and the latter only be relevant for python_distribution targets - not building resolves.
When in pip, we apparently need to disable build isolation or pip will happily use the latest version of setuptools unless the package itself has requirements that disable this. I haven't been able to figure out how to set the same in pants (or at least limit the highest version of setuptools).
Would appreciate any pointers.
Thanksfancy-policeman-6755
07/29/2024, 12:08 PMwide-midnight-78598
07/29/2024, 12:26 PMfew-stone-30898
07/29/2024, 12:27 PMbillowy-library-68050
07/29/2024, 12:27 PMwide-midnight-78598
07/29/2024, 12:33 PMno-build-isolation
flag... But Pants doesn't seem to have exposed itfew-stone-30898
07/29/2024, 12:38 PM"build_isolation": true,
which suggest that setuptools is used on the fly anyway (from what I understood). I also haven't found a way to disable build isolation.wide-midnight-78598
07/29/2024, 12:40 PMwide-midnight-78598
07/29/2024, 12:46 PM--no-build-isolation
in pip doesn't appear to workwide-midnight-78598
07/29/2024, 12:49 PMpants --python-resolves-to-constraints-file="{'python-default': 'constraints.txt'}" generate-lockfiles ::
Does this work for anyone? With constraints.txt being:
setuptools<72
wide-midnight-78598
07/29/2024, 12:53 PMfew-stone-30898
07/29/2024, 12:54 PMpython_requirement(
name="pytest",
resolve="pytest",
requirements=["pytest", "pytest-cov", "ipdb", "pytest-vcr", "pytest-asyncio"],
)
seems to be reliably broken for usfew-stone-30898
07/29/2024, 12:55 PMwide-midnight-78598
07/29/2024, 1:00 PM--no-build-isolation
in the pex cli, and then broke when removing it. That's a good thingwide-midnight-78598
07/29/2024, 1:00 PMfew-stone-30898
07/29/2024, 1:05 PMwide-midnight-78598
07/29/2024, 1:10 PMwide-midnight-78598
07/29/2024, 1:25 PMwide-midnight-78598
07/29/2024, 1:26 PM[pex-cli]
version = "v2.11.0"
known_versions = [
"v2.11.0|macos_arm64|554a3ad5d1662d93d06a7e65bf5444589d1956752df39e2665a4d54e1e05c949|4181790",
"v2.11.0|macos_x86_64|554a3ad5d1662d93d06a7e65bf5444589d1956752df39e2665a4d54e1e05c949|4181790",
"v2.11.0|linux_x86_64|554a3ad5d1662d93d06a7e65bf5444589d1956752df39e2665a4d54e1e05c949|4181790",
"v2.11.0|linux_arm64|554a3ad5d1662d93d06a7e65bf5444589d1956752df39e2665a4d54e1e05c949|4181790"
]
wide-midnight-78598
07/29/2024, 1:26 PMfew-stone-30898
07/29/2024, 1:28 PMwide-midnight-78598
07/29/2024, 1:28 PMfew-stone-30898
07/29/2024, 1:34 PM