Skip to content
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

[Feature] Use virtual env / Use less AUR packages #1017

Open
clsty opened this issue Dec 21, 2024 · 6 comments
Open

[Feature] Use virtual env / Use less AUR packages #1017

clsty opened this issue Dec 21, 2024 · 6 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@clsty
Copy link
Collaborator

clsty commented Dec 21, 2024

Currently there are 210 issues opened, and I've noticed that lots of them are about package installation failure or non-existence, often related to python package version thingy.

For myself, I've successfully installed the repo on two of my computers, but one of them break after a rolling update months ago (and I don't have time to deal with it so I just switch to waybar config temporarily).

I'm not good at python, but I know that python has some virtual environment thingy to deal with package isolation, which may make this repo easier, more stable and cleaner to install on various computers (and even on other distros).

(I'm somehow busy but I'll have a look at this question eventually.)

@clsty clsty added the help wanted Extra attention is needed label Dec 21, 2024
@clsty clsty self-assigned this Dec 21, 2024
@clsty clsty pinned this issue Dec 21, 2024
@NotAF0e
Copy link

NotAF0e commented Dec 21, 2024

Something like python poetry could be good I think. It works similar to rust where you have a toml file in which all the libraries names and versions can sit, it can be locked too so that no library updates break stuff

@ZeyadMoustafaKamal
Copy link

I would recommend using uv for this. Also I may help with the PR. I have limited time but I will try to do my best.

@NotAF0e
Copy link

NotAF0e commented Dec 21, 2024

I would recommend using uv for this. Also I may help with the PR. I have limited time but I will try to do my best.

Oh wow uv looks amazing

@clsty
Copy link
Collaborator Author

clsty commented Jan 10, 2025

I would recommend using uv for this. Also I may help with the PR. I have limited time but I will try to do my best.

@ZeyadMoustafaKamal I appreciate that uv idea and PR is very welcomed.

@ZeyadMoustafaKamal
Copy link

@clsty I will do this but I will finish my exams in 22-1-2025 and I don't think that I can do something before this. Also I would like to make some small docs maybe part of the contribution guide or something because uv is relatively new so I don't think that all people can use it easily. But I need to have a plan for how this will work.

We will modify the install script so we will install uv (should be easy) and create the venv within it (but where you think we will store the venv? is it fine to be part of the config files or maybe $XDG_STATE_DIR ? I don't know if this will make any difference but if you have a suggestions please tell me). We will use uv as well to install all libraries and finally we will change all python scripts to use the new interpreter that will be in the venv. Anything else missing ?

@clsty
Copy link
Collaborator Author

clsty commented Jan 11, 2025

I will do this but I will finish my exams in 22-1-2025 and I don't think that I can do something before this.

No hurry, take your time.

Also I would like to make some small docs maybe part of the contribution guide or something because uv is relatively new so I don't think that all people can use it easily.

I'm glad you have thought of this.
Welcome to contribute to https://github.com/end-4/dots-hyprland-wiki/ .

is it fine to be part of the config files or maybe $XDG_STATE_DIR ?

I suggest we use $XDG_STATE_DIR since the packages installed in the venv may take up relatively bigger space than the config files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants