jamespreed / conda-minify

A simple library to create minified or relaxed versions of Conda environment specs for cross-platform sharing.
MIT License
59 stars 2 forks source link

More flexible/extendible method to locate pypi repository #15

Open BjarneHerland opened 1 year ago

BjarneHerland commented 1 year ago

My 'miniforge' installation on MacOs 11/Arm64 pypi has a slightly different path to its repository. Since this may differ between operation-systems, versions of pip and/or conda-clones, some flexible and dynamic way to find the path may be useful.

This patch is a starting-point using the glob-module combined with some iterating. Should be extended to work on as many OS/pip-version/conda-clone -combos as possible