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

Add venv for Arch Linux #1382

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add venv for Arch Linux #1382

wants to merge 4 commits into from

Conversation

larkjkj
Copy link

@larkjkj larkjkj commented Feb 6, 2025

Title says it all.

README.md Outdated
@@ -207,6 +215,24 @@ python mtk.py multi "cmd1;cmd2"
```
See the file "[run.example](https://github.com/bkerler/mtkclient/blob/main/examples/run.example)" on how to structure the script file

### Using in on ARCH (BTW)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go with "Using with virtualenv", because this works on any distro, not just on arch.

README.md Outdated

If you gonna run any command, you NEED to use this prefix...
```
~/.venv/bin/python mtk.py ...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is for non knowledgeable users, I would start with:

source .venv/bin/activate
pip install .

And I would not mention the gui when using virtualenv.

Also, once inside virtualenv, you can just run using mtk, see:

mtk --help

To exit virtualenv:

deactivate

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, switching to virtualenv is better than using the same prefix everytime!

@bkerler
Copy link
Owner

bkerler commented Feb 12, 2025

I'd say people using linux should know how to use venv. A better option is to go with pyenv imho. In any way, @bindertron is right with his comments, please make sure to adapt the PR accordingly. Thanks

@larkjkj
Copy link
Author

larkjkj commented Feb 14, 2025

fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants