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

json-dat.py script is hard to use with new pip restrictions #2263

Open
sgpthomas opened this issue Aug 14, 2024 · 1 comment
Open

json-dat.py script is hard to use with new pip restrictions #2263

sgpthomas opened this issue Aug 14, 2024 · 1 comment

Comments

@sgpthomas
Copy link
Collaborator

The new pip restrictions force you to install everything in a virtualenv. This makes it very annoying to run fud/fud2 commands that rely on this without resorting to disabling this error, or making new virtualenvs. Both of these seem non-ideal. I think probably the solution is to turn json-dat.py into an installable python package, but I'm open to ideas. The other reasonable possibility that I can imagine is to remove all python dependencies except the fud dependency. And then set PYTHONPATH to include the fud directory when we run json-dat.py.

@sgpthomas sgpthomas changed the title json-dat.py script is hard to install with new pip restrictions json-dat.py script is hard to use with new pip restrictions Aug 14, 2024
@sgpthomas
Copy link
Collaborator Author

I think a better solution is to set the python var in fud2.toml to a venv python with the correct things installed. This is putting some of the burden on plugin writers to not use python directly, and instead read the python version from the config. Which I think most of them do already.

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

No branches or pull requests

1 participant