Giter VIP home page Giter VIP logo

Comments (9)

davidhalter avatar davidhalter commented on July 30, 2024

Why?

from jedi.

woutervh avatar woutervh commented on July 30, 2024

because libraries installed in a virtualenv should not write to hardcoded externals dirs like ~/.cache/jedi.
XDG-directories are a very good default, but they should still remain default.

and setting XDG_CACHE_HOME to some project-specific dir only creates other issues.

from jedi.

woutervh avatar woutervh commented on July 30, 2024

and because I want to avoid monkeypatching :)

from jedi.

davidhalter avatar davidhalter commented on July 30, 2024

But this does not explain when you would use this?

from jedi.

woutervh avatar woutervh commented on July 30, 2024

I never use jedi directly but subdependencies in many of my projects are.

The whole idea of virtualenvs is to provide a certain isolation from the rest of the system and the ability to run many versions in parallel. Writing to $HOME runs counter to that.

from jedi.

woutervh avatar woutervh commented on July 30, 2024

this does not explain when you would use this?

I'm not understanding your question.
I never want a virtualenv-installed python library to write to $HOME.

So when would I use this JEDI_CACHE_DIR? In every project that depends on jedi.

from jedi.

davidhalter avatar davidhalter commented on July 30, 2024

But how do you set this? Do you really set this variable by hand in every venv?

from jedi.

woutervh avatar woutervh commented on July 30, 2024

I set env-vars in a .env and pip install autoread-dotenv to automatically process the .env.

see https://autoread-dotenv.readthedocs.io/ ( I wrote this package)

examples:

from jedi.

davidhalter avatar davidhalter commented on July 30, 2024

Sorry, this feels not important enough for me. I'm closing.

from jedi.

Related Issues (20)

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.