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

[ENH] - Support PIP install flags on conda-store #2914

Open
empollon9 opened this issue Jan 17, 2025 · 0 comments
Open

[ENH] - Support PIP install flags on conda-store #2914

empollon9 opened this issue Jan 17, 2025 · 0 comments

Comments

@empollon9
Copy link

empollon9 commented Jan 17, 2025

Feature description

#2909

While creating an environment on conda-store, I needed to install a proprietary package with pip. I have seen the documentation on here, but it does not cover my scenario. I have my proprietary package in Azure Devops Artifacts which is normally installed with:

pip install mypackage==x.y.z --index-url https://mypackage:pat_asdf@pkgs.dev.azure.com/{organization}/{project}/_packaging/{mypackage}/pypi/simple/

where:

mypackage is the package name
pat_asdf is a PAT key
{organization} is your organization code in Azure
{project} is you projectname in Azure DevOps

This works fine on Conda, however when I try this on conda-store on nebari I get the following error:

File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/packaging/requirements.py", line 37, in init
raise InvalidRequirement(str(e)) from e
packaging.requirements.InvalidRequirement: Expected package name at the start of dependency specifier
--extra-index-url https://mypackage:pat_asdf@pkgs.dev.azure.com/{organization}/{project}/_packaging/{mypackage}/pypi/simple/
^

Value and/or benefit

To be able to add pip install flags, this will allow to install PIP packages from other repositories in addition tto PYPI, like private repositories on Azure Dev-Ops. At the moment the only ones that can be use are Git or GitLab. PIP install flags wuld allow to use either --extra-index-url or --find-links for packages on a local directory that you an have downloaded previously.

I am happy to help if I get some support to look into the right direction.

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

No branches or pull requests

1 participant