[cmake] Add a user-facing interface to add additional pip params
For discussion in #239 (closed)
Merge request reports
Activity
mentioned in issue #239 (closed)
mentioned in merge request quality/dune-testtools!138 (merged)
I have implemented a PyPI fallback that is used in the CI of dune-testtools: https://gitlab.dune-project.org/dominic/package-index/-/tree/master
This relies on this feature, so I would like to merge this.
mentioned in commit 4019cb1b
@dominic Kempfmailto:dominic.kempf@iwr.uni-heidelberg.de that looks like something I've been looking for infrastructure/dune-nightly-test!1 (comment 75349) If that does what I think it does I would like to have that in dune-common if possible.
I would be happy to download the pip2pi package myself that is not the issue. What I wanted to do was upload python packages from PyPi to the python registry of the dune-project gitlab - which can store python packages. Then use
pip install --repository [DUNE-GITLAB] package
in the CI. If I understand what you are doing is adding the packages to the git repo - which of course also works. I had a look atrebuild-index.sh
which is clear enough but I couldn't find where you use it in the CI.It took me some time to figure out the right URL. So I activated it for dune-fem have the token etc. in my ~/.pypirc with the correct path being https://gitlab.dune-project.org/api/v4/projects/812/packages/pypi Perhaps that helps. Don't know if the token part might be an issue with the CI. The project pip2pi you found will simplify things at least because I was trying to figure out how to do that.