Giter VIP home page Giter VIP logo

kiara-bootstrap's Introduction

Kiara bootstrapping app

This exists to install a specified version of python on an end-user's computer, install our required packages into that, then start kiara-tauri using that python interpreter.

There's lots of nice UX things we could do here, currently it just thinks silently for a minute or 2 then opens up the kiara-tauri window.

At the moment I've only made it work for Mac, but the concept should extend for linux/windows too if/when there's demand

It expects the kiara-tauri project to be cloned in the same directory as this one, and you to have built a binary that will exist in kiara-tauri/src-tauri/target/release/kiara-tauri. There's a symlink to this file in /bin, which is referenced in src-tauri/tauri.conf.json. This will be injected into this application as a sidecar

For now, it assumes the end-user has pixi installed, later on we can bundle this as a sidecar too, or switch to using something else to install the python version and packages. Pixi bootstraps a C compiler to make it possible to install python.

https://github.com/pyenv/pyenv/tree/master/plugins/python-build is a way to install a specific version we need to set PREFIX env var to tell it where to install (~/.kiara-app), and PYTHON_CONFIGURE_OPTS="--enable-shared" to get the shared library that pyo3 needs.

https://github.com/prefix-dev/pixi/blob/main/examples/docker-build/Dockerfile install pixi with curl?

kiara-bootstrap's People

Contributors

caro401 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.