Skip to content

Possiblity to pass custom argument to setup.py when installing a package. #11627

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

Closed
1 task done
mgreive opened this issue Nov 29, 2022 · 1 comment
Closed
1 task done
Labels
resolution: wrong project Should be reported elsewhere

Comments

@mgreive
Copy link

mgreive commented Nov 29, 2022

What's the problem this feature will solve?

It used to be possible to pass custom options with pip install that could be accesed in setup.py as described for example in this stackoverflow post. Since --install-options is now deprectated ( #11358) this is not possible anymore.

Describe the solution you'd like

I would like something similar to what used to be possible. Makeing a custom option accesable in setup.py. And if this should already exist maybe some documentation regarding that.
This is for example useful for projects with multiple versions to distribute. Especially if the wanted version needs to be known during the building process and can not be specified at run time.

Alternative Solutions

A workaround to my specific problem is using enviromental variables as suggested in the stack overflow post linked above. This is of course not very pretty and may be difficult for some people since it makes the install process more complicated.

Additional context

I posted a question regarding this on stackoverflow but I am starting to wonder if it is possible to get the result I want with --config-settings. If this should be the case it maybe would be nice to add some form of documentation explaining the use of --config-settings.

Code of Conduct

@mgreive mgreive added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels Nov 29, 2022
@uranusjr
Copy link
Member

--config-settings is tool-specific, and you should reach out to setuptools for how it can be used instead.

@uranusjr uranusjr closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2022
@uranusjr uranusjr added resolution: wrong project Should be reported elsewhere and removed type: feature request Request for a new feature S: needs triage Issues/PRs that need to be triaged labels Nov 29, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: wrong project Should be reported elsewhere
Projects
None yet
Development

No branches or pull requests

2 participants