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

Run commands before extras/package installation #1969

Closed
yannikschaelte opened this issue Mar 10, 2021 · 3 comments
Closed

Run commands before extras/package installation #1969

yannikschaelte opened this issue Mar 10, 2021 · 3 comments
Labels
feature:new something does not exist yet, but should

Comments

@yannikschaelte
Copy link

Is there a way of executing commands prior to package/extras installation?

Reason: Some dependencies may require the installation of further dependencies before pip installing them. For this, being able to define commands to run before that would be good. "commands_pre" does not seem to do that, as far as I see.

@yannikschaelte yannikschaelte added the feature:new something does not exist yet, but should label Mar 10, 2021
@gaborbernat
Copy link
Member

You can enlist these in the https://tox.readthedocs.io/en/latest/config.html#conf-deps. though for modern packaging best practices all you need is pyproject.toml with isolated builds.

@yannikschaelte
Copy link
Author

Thanks @gaborbernat , totally makes sense. I missed the "prior to" in the deps documentation. install_requires would indeed be preferable, here just not directly applicable as it concerns an optional dependency which must be set up more properly.

@ssbarnea
Copy link
Member

ssbarnea commented Aug 6, 2024

@gaborbernat I am inclined to say that the issue is still valid. For example I want to run a command before installing dependencies, to check if system packages were installed, system packages that in case of missing would prevent installation of the dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:new something does not exist yet, but should
Projects
None yet
Development

No branches or pull requests

3 participants