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

Feature request: Ability to import custom Python packages from local or from other package indexes #16

Open
dsmanl opened this issue Jan 29, 2021 · 1 comment

Comments

@dsmanl
Copy link

dsmanl commented Jan 29, 2021

Dear all,

we are currently struggling with installing custom Python packages that are not provided by PyPI using the gears-cli. We use install-requirements, export-requirements and import-requirements in a Docker multi-stage build in order provide an image with preinstalled Python packages.

Currently, it seems that entries (lines) in the requirements.txt file are treated as strings and it is not possible to use --extra-index-url in order to specify an alternative package index or to provide a path.

Did we miss something or are there any workarounds?

Are there any plans for allowing alternative Python package indexes (e.g. a GitLab package index) or specifying paths?

Thanks a lot for all of your support and your great work!

@MeirShpilraien
Copy link
Collaborator

Hey @dsmanl , sorry for the late reply, we are planning to allow much more options in the future but currently, as a workaround, it is possible to install from a local path (assuming Redis has access to this path). Just put this path in the requirement.txt (full path) and if Redis has access to it then it will be installed from there. Then you can export and import this requirement (notice that the requirement name will be the full path you give). I know it's not perfect, hope it will do for now, let me know if you need any help with this.

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

No branches or pull requests

2 participants