Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for optional python_site_packages_path in repodata #3579

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jjhelmus
Copy link

@jjhelmus jjhelmus commented Nov 6, 2024

Add support for the optional python_site_packages_path field that can appear in repodata for python packages as a means to specify the location of the site-packages directory.

This optional field is defined in CEP-17.

partial implementation for #3558

Please be kind as this is my first contribution to mamba and the first time digging into the source.

Add support for the optional python_site_packages_path field that can
appear in repodata for python packages to specify the location of the
site-packages directory.

This optional field is defined in CEP-17.
@jjhelmus jjhelmus changed the title add optional python_site_packages_path in repodata support for optional python_site_packages_path in repodata Nov 6, 2024
@jjhelmus
Copy link
Author

jjhelmus commented Nov 6, 2024

This is likely not a complete implementation for CEP-17 in mamba but may be enough to unblock libmamba-conda-solver (see conda/conda-libmamba-solver#560).

This is rough and likely needs some work to finish things up but was hoping for initial feedback (or someone else to take over 😄).

With these changes I was able to get the field to show up in the output of repoquery search:

./build/micromamba/mamba repoquery search -c jjhelmus/label/sp_path python=3.99.99  --json | jq .result.pkgs
[
  {
    "build": "0",
    "build_number": 0,
    "build_string": "0",
    "channel": "jjhelmus",
    "constrains": [],
    "depends": [
      "pip"
    ],
    "fn": "python-3.99.99-0.tar.bz2",
    "license": "",
    "md5": "2570015e0cb5829cbdfa9780b4564db9",
    "name": "python",
    "noarch": "generic",
    "python_site_packages_path": "lib/python3.99t/site-packages",
    "sha256": "a2be7c56f9ce3d6fc25220a49185894d02cf03b832bb9fb55122e6a662bde910",
    "size": 2912,
    "subdir": "noarch",
    "timestamp": 1726861043,
    "track_features": "",
    "url": "https://conda.anaconda.org/t/jj-80e459ed-f2bc-4975-ae2e-68f8e339b666/jjhelmus/label/sp_path/noarch/python-3.99.99-0.tar.bz2",
    "version": "3.99.99"
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant