quaint-telephone-89068
01/17/2023, 11:49 PMpyproject.toml file as below at `~/code/mylibrary/`:
[tool.poetry]
name = "mylibrary"
version = "0.1.0"
[tool.poetry.dependencies]
python = ">=3.8,<4"
anotherlibrary = {path = "../anotherlibrary", develop=true}
[tool.poetry.group.dev.dependencies]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
I build a .whl for mylibrary and here's what its mylibrary-0.1.0.dist-info/METADATA file contains:
Metadata-Version: 2.1
Name: mylibrary
Version: 0.1.0
Requires-Python: >=3.8,<4
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: anotherlibrary @ file:///Users/rajaiealkorani/code/anotherlibrary
Description-Content-Type: text/markdown
I am trying to build a Pex file by passing that .whl as a dependency, but I am getting the error below:
pex --resolver-version pip-2020-resolver dist/mylibrary-0.1.0-py3-none-any.whl -o /tmp/testing.pex
Failed to resolve compatible distributions:
1: mylibrary==0.1.0 requires anotherlibrary@ file:///Users/rajaiealkorani/code/anotherlibrary but no version was resolved
Is this a bug in Pex, or is this kind of dependency specification not supported?
I'm able to run pip install mylibrary-0.1.0-py3-none-any.whl in a clean virtual environment as long as file:///Users/rajaiealkorani/code/anotherlibrary exists
I am using Pex 2.1.120
pantsbuild/pex