stocky-helmet-22655
03/21/2023, 5:44 PMpython_distributionpython-repos.find_links = ["file://%(buildroot)s/dist"]stocky-helmet-22655
03/21/2023, 5:53 PMwitty-crayon-22786
03/21/2023, 5:55 PMpython_distributionwitty-crayon-22786
03/21/2023, 5:56 PMstocky-helmet-22655
03/21/2023, 5:57 PMwitty-crayon-22786
03/21/2023, 5:58 PMpython_distributiondependenciespython_teststocky-helmet-22655
03/21/2023, 6:00 PMpython_testpython_sourcespython_distributionpython_testpython_sourcesstocky-helmet-22655
03/21/2023, 6:00 PMpython_testwitty-crayon-22786
03/21/2023, 6:01 PMhappy-kitchen-89482
03/21/2023, 6:29 PMpython_testspython_distributionstocky-helmet-22655
03/21/2023, 7:30 PMpython_testspython_distributionruntime_package_dependenciesModuleNotFoundErrorhappy-kitchen-89482
03/21/2023, 9:04 PMhappy-kitchen-89482
03/21/2023, 9:04 PMruntime_package_dependenciesdependencies=happy-kitchen-89482
03/21/2023, 9:04 PMhappy-kitchen-89482
03/21/2023, 9:05 PMstocky-helmet-22655
03/22/2023, 3:27 AMruntime_package_dependenciesdependencies=python_distributionpython_testspython_distributiondependencies=NoCompatibleResolveExceptionstocky-helmet-22655
03/22/2023, 3:50 AMhappy-kitchen-89482
03/22/2023, 1:53 PMhappy-kitchen-89482
03/22/2023, 1:54 PMhappy-kitchen-89482
03/22/2023, 1:55 PMhappy-kitchen-89482
03/22/2023, 1:56 PMhappy-kitchen-89482
03/22/2023, 1:56 PMstocky-helmet-22655
03/22/2023, 2:23 PMThanks for the extra detail. Can you explain why you want A to depend on “the output of B” rather than just on B’s sources?From what I’m told, doing it this way can help prevent some strange types of errors particularly with extension modules
The idiomatic way here would be for A to depend on B from source when you run tests, even though you also publish BThis is what I’m used to doing - the requirement is coming from others and I’ll admit I don’t fully understand it - hopefully the above response makes sense
Re environment markers, I would have expected those to work, can you elaborate on what error you were seeing with them? And also, are you using a lockfile?I am using a lockfile - I have a demo of this not working here: https://github.com/nikwotton/Broken-Pants-Demo/tree/broken-lockfiles I agree it should work and pants’ documentation suggests it would, but trying to generate the lockfile fails. Note it has the same failure whether the requirements are in requirements.txt or in
python_requirementstocky-helmet-22655
03/22/2023, 7:57 PMhappy-kitchen-89482
03/22/2023, 8:05 PMpython_distributionstocky-helmet-22655
03/22/2023, 8:32 PMand yes, if B contains extensions then you would need to represent it as aThis specific package I’m working on does not, but I’m working on getting this setup in such a way that it can be a blueprint for adding pants to all packages in the monorepo so I want to set this up as if it did, does it?python_distribution
Yeah, I think filing an issue would be the good next stephttps://github.com/pantsbuild/pants/issues/18555
enough-analyst-54434
03/23/2023, 2:21 AMpython_distributionnumpy >=1.16.2,<1.20; python_version == '3.7'
numpy >=1.21.3,<1.22.0; python_version == '3.10'python_distrubutionenough-analyst-54434
03/23/2023, 2:25 AMpython_distributionstocky-helmet-22655
03/28/2023, 7:57 PMpython_distributionpython_distributionbrief-scientist-13682
10/21/2025, 3:30 AM:; python -mpex.cli lock create \
    --pip-version latest-compatible \
    --style universal \
    --target-system linux \
    --target-system mac \
    --interpreter-constraint "CPython>=3.7,!=3.8.*,!=3.9.*,<3.11" \
    "numpy >=1.16.2,<1.20; python_version == '3.7'" \
    "numpy >=1.21.3,<1.22.0; python_version == '3.10'" \
    --indent 2 -o lock.json \
    --elide-unused-requires-dist:; jq '.locked_resolves[] | {marker: .marker, numpy: .locked_requirements[] | select(.project_name == "numpy")}' lock.json 
{
  "marker": "(platform_system == \"Linux\" or platform_system == \"Darwin\") and platform_python_implementation == \"CPython\" and python_full_version == \"3.7.*\"",
  "numpy": {
    "artifacts": [
      {
        "algorithm": "sha256",
        "hash": "50a4a0ad0111cc1b71fa32dedd05fa239f7fb5a43a40663269bb5dc7877cfd28",
        "url": "<https://files.pythonhosted.org/packages/fe/93/b0b203c693d621d6ee9577fc650bab49434c6d23c809dc4eb49db6a339af/numpy-1.19.5-cp37-cp37m-manylinux2014_aarch64.whl>"
      },
      {
        "algorithm": "sha256",
        "hash": "6149a185cece5ee78d1d196938b2a8f9d09f5a5ebfbba66969302a778d5ddd1d",
        "url": "<https://files.pythonhosted.org/packages/08/d6/a6aaa29fea945bc6c61d11f6e0697b325ff7446de5ffd62c2fa02f627048/numpy-1.19.5-cp37-cp37m-manylinux2010_x86_64.whl>"
      },
      {
        "algorithm": "sha256",
        "hash": "06fab248a088e439402141ea04f0fffb203723148f6ee791e9c75b3e9e82f080",
        "url": "<https://files.pythonhosted.org/packages/0b/2c/b20e49628109f1f6aa56c5a283dc6001276b0b8853712dc66f2243abddfe/numpy-1.19.5-cp37-cp37m-manylinux2010_i686.whl>"
      },
      {
        "algorithm": "sha256",
        "hash": "603aa0706be710eea8884af807b1b3bc9fb2e49b9f4da439e76000f3b3c6ff0f",
        "url": "<https://files.pythonhosted.org/packages/39/ba/f3db2b5bb36fee2478b1cf47e7f9664b9c27241be80acd31c844404da297/numpy-1.19.5-cp37-cp37m-macosx_10_9_x86_64.whl>"
      },
      {
        "algorithm": "sha256",
        "hash": "a76f502430dd98d7546e1ea2250a7360c065a5fdea52b2dffe8ae7180909b6f4",
        "url": "<https://files.pythonhosted.org/packages/51/60/3f0fe5b7675a461d96b9d6729beecd3532565743278a9c3fe6dd09697fa7/numpy-1.19.5.zip>"
      },
      {
        "algorithm": "sha256",
        "hash": "36674959eed6957e61f11c912f71e78857a8d0604171dfd9ce9ad5cbf41c511c",
        "url": "<https://files.pythonhosted.org/packages/b1/e1/8c4c5632adaffc18dba4e03e97458dc1cb00583811e6982fc620b9d88515/numpy-1.19.5-cp37-cp37m-manylinux1_x86_64.whl>"
      },
      {
        "algorithm": "sha256",
        "hash": "cae865b1cae1ec2663d8ea56ef6ff185bad091a5e33ebbadd98de2cfa3fa668f",
        "url": "<https://files.pythonhosted.org/packages/ca/8d/cfeab2119d6c94e1c6ad7753853773a142109a5f8f56e1d8c940886814bc/numpy-1.19.5-cp37-cp37m-manylinux1_i686.whl>"
      }
    ],
    "project_name": "numpy",
    "requires_dists": [],
    "requires_python": ">=3.6",
    "version": "1.19.5"
  }
}
{
  "marker": "(platform_system == \"Linux\" or platform_system == \"Darwin\") and platform_python_implementation == \"CPython\" and python_full_version == \"3.10.*\"",
  "numpy": {
    "artifacts": [
      {
        "algorithm": "sha256",
        "hash": "5f30427731561ce75d7048ac254dbe47a2ba576229250fb60f0fb74db96501a1",
        "url": "<https://files.pythonhosted.org/packages/6f/7b/036000a55680e6c7eb81502b0aa27ce0ed65d4d8805613909967d9f8baf6/numpy-1.21.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl>"
      },
      {
        "algorithm": "sha256",
        "hash": "3820724272f9913b597ccd13a467cc492a0da6b05df26ea09e78b171a0bb9da6",
        "url": "<https://files.pythonhosted.org/packages/26/e7/4a6f579af8186372b03e8480e47df309520d91cfead8759b64dd5ac62688/numpy-1.21.6-cp310-cp310-macosx_11_0_arm64.whl>"
      },
      {
        "algorithm": "sha256",
        "hash": "ecb55251139706669fdec2ff073c98ef8e9a84473e51e716211b41aa0f18e656",
        "url": "<https://files.pythonhosted.org/packages/45/b7/de7b8e67f2232c26af57c205aaad29fe17754f793404f59c8a730c7a191a/numpy-1.21.6.zip>"
      },
      {
        "algorithm": "sha256",
        "hash": "fdffbfb6832cd0b300995a2b08b8f6fa9f6e856d562800fea9182316d99c4e8e",
        "url": "<https://files.pythonhosted.org/packages/4a/72/a3379f83172f1431d7949138373e3a24beed68184c9362dab1b4d465be26/numpy-1.21.6-cp310-cp310-macosx_10_9_x86_64.whl>"
      },
      {
        "algorithm": "sha256",
        "hash": "f17e562de9edf691a42ddb1eb4a5541c20dd3f9e65b09ded2beb0799c0cf29bb",
        "url": "<https://files.pythonhosted.org/packages/57/ba/d8cbdfd507b541bb247beff24d9d7304ac8ffc379cf585701187d45d4512/numpy-1.21.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl>"
      },
      {
        "algorithm": "sha256",
        "hash": "8737609c3bbdd48e380d463134a35ffad3b22dc56295eff6f79fd85bd0eeeb25",
        "url": "<https://files.pythonhosted.org/packages/ff/c6/05ae3c7f75b596e1bb3d78131c331eada9376a03d1af9801bd40e4675023/numpy-1.21.6-cp310-cp310-macosx_10_9_universal2.whl>"
      }
    ],
    "project_name": "numpy",
    "requires_dists": [],
    "requires_python": "<3.11,>=3.7",
    "version": "1.21.6"
  }
}brief-scientist-13682
10/21/2025, 4:11 AM