https://pantsbuild.org/ logo
#general
Title
# general
a

ambitious-petabyte-59095

07/05/2022, 12:08 PM
Hey there, is there any update/workaround for this particular issue? https://github.com/pantsbuild/pants/issues/11386. Basically, I'm trying to include a
python_distribution
dependency to my tests but I'm encountering errors.
Copy code
ProcessExecutionFailure: Process 'Building pytest_runner.pex' failed with exit code 1.
stdout:

stderr:
Traceback (most recent call last):
  File "/home/rupsi/.cache/pants/named_caches/pex_root/unzipped_pexes/43e6213d762a85cdfe3a5ba8fae598cdd810eb99/.bootstrap/pex/pex.py", line 476, in execute
    exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
  ...
    Required by:
      FingerprintedDistribution(distribution=project 2.2.12.dev0 (/home/rupsi/.cache/pants/named_caches/pex_root/installed_wheels/77e8c4120e12fb3aa103bd258ee3da4b130ac3f6/project-2.2.12.dev0-py3-none-any.whl), fingerprint='806ca55729214217ad5f390d7d0ff6733339320b')
    But this pex had no 'SQLAlchemy' distributions.
 2: alembic>=1.7.6
    Required by:
...
but checking with
./pants --tag=e2e dependencies --transitive ::
i can see that everything should be working fine
Copy code
14:05:07.96 [INFO] Initialization options changed: reinitializing scheduler...
14:05:08.39 [INFO] Scheduler initialized.
//:Jinja2
//:Pillow
//:PyMuPDF
//:PyYAML
//:SQLAlchemy
//:aiofile
...
Thanks for all your help.
h

hundreds-father-404

07/05/2022, 2:36 PM
Hi! So with the link to https://github.com/pantsbuild/pants/issues/11386, I take it you do not want to use
runtime_package_dependencies
? Which will simply build the wheel, not install it into the env
e

enough-analyst-54434

07/05/2022, 7:11 PM
If the problem is like that issue's OP, then the wheel needs to be installed to get normal access to its
entry_point
metadata.
Ah, sorry, we're saying the same thing I think.
w

worried-boots-82926

07/13/2022, 11:26 AM
I'm running into the same issues, is there a way to manually tell pants that it should include certain distributions in that pex?