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 a "shared cache" subdirectory of .nox and add API for accessing it #72

Closed
dhermes opened this issue Oct 20, 2017 · 11 comments · Fixed by #476
Closed

Add a "shared cache" subdirectory of .nox and add API for accessing it #72

dhermes opened this issue Oct 20, 2017 · 11 comments · Fixed by #476

Comments

@dhermes
Copy link
Collaborator

dhermes commented Oct 20, 2017

@theacodes And I have discussed this before but I keep forgetting to file an issue.

A few applications:

  • Python extensions with long compile times can cache object files and other built resources there (can share object files across different Python versions)
  • Store hashes of non-Python source files, so that way the .so/.pyd modules in an editable install can be updated when the source changes
@theacodes
Copy link
Collaborator

I'm all for this idea, but we'd need someone to sketch out what the API should look like.

@dhermes
Copy link
Collaborator Author

dhermes commented Aug 24, 2018

Would {envdir}/.shared be an appropriate name? Does there exist a check against the virtualenv_dirname for "reserved" names?

@theacodes
Copy link
Collaborator

That makes sense to me.

@theacodes
Copy link
Collaborator

There's nothing blocking this issue, and it's a great candidate for a contribution. We'd just need to sketch out the API together.

@pradyunsg
Copy link
Contributor

Noting here that pip's use case would benefit from this, since we maintain a common wheels "cache" for our test suite (downloaded setuptools and wheel .whl files, which can be installed during the tests in our various environments).

For now, I'm just dumping them in a local directory that's git-ignored.

@theacodes
Copy link
Collaborator

We have some of this in #320, this just makes it higher-level by having a directory that is shared across sessions and persists between Nox runs.

@DiddiLeija
Copy link
Collaborator

@theacodes @dhermes How is this issue going? If there's something else to do, I can do it. Just tell me.

@DiddiLeija
Copy link
Collaborator

So, can I work on this issue?

@theacodes
Copy link
Collaborator

theacodes commented Sep 9, 2021 via email

@DiddiLeija
Copy link
Collaborator

Ok. I'll open a PR the next week (I don't feel so good this week 😞).

@theacodes
Copy link
Collaborator

theacodes commented Sep 9, 2021 via email

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

Successfully merging a pull request may close this issue.

4 participants