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

macOS build instructions #20

Closed
foreverigor opened this issue Apr 23, 2024 · 4 comments
Closed

macOS build instructions #20

foreverigor opened this issue Apr 23, 2024 · 4 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request install/build tool A tool to help with installing, building, and/or launching the program

Comments

@foreverigor
Copy link

foreverigor commented Apr 23, 2024

I managed to build & run on macOS so I'm sharing:

It didn't work with the latest version of python, something related to dependencies, but 3.10 works so try with that.
I recommend using mise for installation of python, it can also handle the rest of the build. Using mise, this is how you build on macOS (and potentially linux)

Put this into a file called .mise.toml in the project directory

[tools]
python = "3.10"

[env]
_.python.venv = { path = ".venv", create = true }

[tasks.tagstudio]
run = "pip install -r requirements.txt && python tagstudio/tagstudio.py"

and then run (with installed mise) mise trust && mise install, this will install python and create the venv and you can run the normal linux/ macos build instruction, or alternatively use mise run --yes tagstudio one-liner

the app & gui starts but looks a little fucky

@OleMortensen8
Copy link
Contributor

I run in python 3.11 so... it might at least work up till that version.

@CyanVoxel CyanVoxel added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 24, 2024
@WardsParadox
Copy link

You can also declare your items as dependencies in the pyproject.toml file.

Would recommend using uv alongside mise (or rye) to create better Venv environments. Using the pyproject.toml to declare dependencies allows much easier updates over time. It's also one file where you can declare your build steps.

@williamtcastro
Copy link
Contributor

I got it working on 3.12 on my macOS machine and created a build script to generate a .app version of the project PR-76

@CyanVoxel CyanVoxel added the install/build tool A tool to help with installing, building, and/or launching the program label Apr 30, 2024
@yedpodtrzitko
Copy link
Collaborator

this can be probably also closed since we have binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request install/build tool A tool to help with installing, building, and/or launching the program
Projects
None yet
Development

No branches or pull requests

6 participants