Comments (11)
That sounds like a good idea.
So, going forward this is what we will want:
- When a string is provided, it will be treated as a VersionSpec
- When a mapping is provided, it will be treated as a NamelessMatchSpec
from pixi.
Brief update: there's actually a very easy way to implement this with serde_with
using PickFirst
:
Pull request coming soon... 😄
from pixi.
This would be a very useful feature to have, especially when working with DL libraries, where installing the Nvidia versions of drivers and CUDA-related packages is preferred over the conda-forge equivalent.
from pixi.
@travishathaway is working on this issue.
from pixi.
Just FYI...
I will try to follow how this was done in Cargo to make it work (see here: https://github.com/rust-lang/cargo/blob/b644a40a1f8406a08bc64305a6a8fd6bb5a34071/src/cargo/util/toml/mod.rs#L218-L262)
from pixi.
Sounds perfect! Im not sure if this was your intention already but I propose that we split the entire matchspec struct out into this "new" form. That would forgo all complex matchspec parsing. WDYT?
from pixi.
I like it! 👍
from pixi.
yay!
from pixi.
How do you see this fitting with pypi/pip dependencies?
pip = { version = "*", repository = "YOUR_CUSTOM_REGISTRY" }
?
from pixi.
I've opened this pull request in rattler. This should provide everything to get my proposed solution working:
from pixi.
Channel specific works since v0.7.0
.
package = { version = "1.2.3", channel = "https://repo.prefix.dev/foo-bar-channel" }
Some caveats still, these can be looked at later when the need for those increases:
- Only uses channels from
project.channels
list. - Doesn't support the label channels yet.
from pixi.
Related Issues (20)
- Rename the `default` feature to `base` HOT 6
- Support `--no-deps` option for pypi dependencies HOT 6
- Can't install pypi package when version contains special character like `+` HOT 4
- Add a way to read env spec from a single script HOT 7
- Can't install `pypi-dependencies` into path with spaces. HOT 10
- [pypi-options] doesn't work HOT 4
- feat: `task list --json` output HOT 2
- Tasks do not run in the active environment by default.
- Add `pixi update --json` HOT 9
- Provide feedback when local install editable fails HOT 4
- `pixi add` with comment HOT 1
- ros2-nav2 example is broken HOT 6
- pixi should help user with missing project channel HOT 2
- Invalidate lock file when mapping changes.
- pixi config option to exhaustively list all configuration options (like `conda config --describe`) HOT 1
- Unable to install `faster-whisper` with pixi, but works with pip (Python 3.12) HOT 3
- Can't modify PATH in env activation table HOT 1
- Incorrectly rebuilding editable pypi dependency, and not installing it HOT 10
- --frozen helpstring is missing from 0.23.0 HOT 1
- thread panic in rattler solve HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixi.