How do you add a local library to a pixi project? #1071
-
While I understand that For example, if we take the test library that lives in https://github.com/scientific-python/upload-nightly-action and try to build an example $ pixi --version
pixi 0.17.1
$ git clone https://github.com/scientific-python/upload-nightly-action.git
$ cd upload-nightly-action/
$ git reset --hard 535c72c70a11e52673bee0471be1ca52161a4b5
$ cd tests/test_package/
$ tree .
.
├── pyproject.toml
├── README.md
└── src
└── test_package
└── __init__.py
2 directories, 3 files
$ pixi init .
✔ Initialized project in /tmp/upload-nightly-action/tests/test_package/.
$ pixi add .
× could not determine any available versions for . on linux-64. Either the package could not be found or version constraints on other dependencies result in a conflict.
╰─▶ Cannot solve the request because of: No candidates were found for . *.
I'm not sure if PR #985 helps on this at all. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
He @matthewfeickert, You're just in time! #985 would indeed do the first part of that. But #1044 is really going to change this experience with editable installs. It doesn't include an This way you can install unreleased, local packages. I'm not sure how you get your |
Beta Was this translation helpful? Give feedback.
He @matthewfeickert,
You're just in time! #985 would indeed do the first part of that. But #1044 is really going to change this experience with editable installs. It doesn't include an
pixi add x
command, yet, but we do provide the underlying functionality to addtest_package = { path = ".", editable = true}
to yourpixi.toml
.This way you can install unreleased, local packages.
I'm not sure how you get your
pixi
installed but to test the latestmain
you can usecargo install --locked --git https://github.com/prefix-dev/pixi.git
orbrew install --HEAD pixi
.