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

How to install gunicorn with tar.gz instead of whl #3316

Open
kelvinou opened this issue Oct 28, 2024 · 2 comments
Open

How to install gunicorn with tar.gz instead of whl #3316

kelvinou opened this issue Oct 28, 2024 · 2 comments

Comments

@kelvinou
Copy link

My friend.
I face some question when use gunicorn, it conflict with others code that same use argparse module.

For example, [gunicorn -c config.py hello:app]
hello.py - call abc.py
abc.py have argparse param like --size --stride

[gunicorn -c config.py hello:app] occurs error: unrecognized arguments

So i want to recompile source code gunicorn.tar.gz, like:
pip install gunicorn-23.0.0.tar.gz
but setup.py not exists.
Could you provide other methods to solve the argparse conflict issue, or provide a method for installing tar.gz
Thanks.

@benoitc
Copy link
Owner

benoitc commented Oct 28, 2024

you need need to use the toml file to install https://til.simonwillison.net/python/pyproject. I recognize this "modern" way is quite inconvenient . I am cooking a new release of gunicorn for a release this month, I may reintroduce a simpler way.

@pajod
Copy link
Contributor

pajod commented Oct 29, 2024

You may not need modification. Gunicorn does not require arguments. It defaults to reading from gunicorn.conf.py - you can put your settings there, then you can call gunicorn with blank args.

Also, if you are trying something new on a supported platform and pip does not install the .tar.gz just fine, please clarify what exactly you are trying (and which versions of setuptools and pip), and what the message is. A setup.py file should be needed only for backwards compatibility. If you indeed need it now, something unusual is going on that should be looked into.

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

4 participants
@benoitc @pajod @kelvinou and others