-
Notifications
You must be signed in to change notification settings - Fork 178
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
docs: add minimal constructor example #2102
docs: add minimal constructor example #2102
Conversation
I have no idea how to tell |
Thanks @bollwyvl will review this later. Do you understand why the yaml is not valid? |
Yeah, it's the jinja (surprise). I can keep trying other syntaxes...
…On Fri, Sep 20, 2024, 10:13 Ruben Arts ***@***.***> wrote:
Thanks @bollwyvl <https://github.com/bollwyvl> will review this later. Do
you understand why the yaml is not valid?
—
Reply to this email directly, view it on GitHub
<#2102 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALCREPDHW4SBVZHEGBCUDZXQ3R7AVCNFSM6AAAAABOSGLTQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRTHE3DEOBZGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
pixi run build | ||
|
||
# Install the built installer | ||
pixi run start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It now has no error when running this, @bollwyvl, but it's unclear to me what I can expect after this? It doesn't install micromamba
for me. Which I assumed, any tips?
Yeah, i don't know the right way to demonstrate the built thing... Having
built installers do their shell integration is usually really bad. Ideally
it should be able to activate itself in a clean shell window or something,
but full tests are probably out of scope.
…On Mon, Sep 23, 2024, 08:33 Ruben Arts ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In examples/constructor-minimal/README.md
<#2102 (comment)>:
> +This demo shows how to use `pixi` to generate explicit `conda` environment specs,
+and [`constructor`][constructor] to use these specs to build platform-specific,
+offline-ready installers.
+
+## How to use?
+
+Make sure you have `pixi` available in your terminal.
+
+Navigate to this directory and run:
+
+```shell
+# Build the installer
+pixi run build
+
+# Install the built installer
+pixi run start
It now has no error when running this, @bollwyvl
<https://github.com/bollwyvl>, but it's unclear to me what I can expect
after this? It doesn't install micromamba for me. Which I assumed, any
tips?
—
Reply to this email directly, view it on GitHub
<#2102 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALCRFJ5MY365MWCXW3APDZYAKDDAVCNFSM6AAAAABOSGLTQCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGMRSGI2TAMRWGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Right I don't want to leave the user with a broken system. If there isn't anything we can show then this is fine by me |
Well, it could list out the installed packages, i suppose... |
(oh and I haven't been able to run this locally, as the constructors will be broken until there's a release that emits topo-sorted |
That worked for me as I'm on main. I'm merging it! Thanks @bollwyvl |
Thanks! Once there's a release, I'll revisit with a more complete lifecycle example (e.g. |
https://anaconda.org/conda-forge/icnsutil is now up. |
references
changes
examples/constructor-minimal
future work
This tries to use the fewest bells and whistles I could manage in both
pixi
andconstructor
to still ship something. That being said, it's still needs some dirty tricks due to some inflexibility in both systems without resorting to a more opaque build script.pixi
(orpy-rattler
) as the solver forconstructor --conda-exe
There's a lot of opportunity to show more useful things on a separate example, such as:
inputs
andoutputs
.conda
package built byrattler-build
during the buildauthor -> company
,system-dependencies -> virtual_specs
constructor
notes
jq
-like tool, e.g.PIXI_PLATFORM
environment variablepixi info --json '.platform'
xargs