able-farmer-8537
06/24/2019, 3:34 PMImportError: No module named gunicorn.__main__; 'gunicorn' is a package and cannot be directly executed
Here's BUILD file. I assume that entry_point
do the same thing as -c
flag in pex?
python_binary(
name = "test_bin",
dependencies = [
":test_lib",
],
entry_point = "gunicorn",
)
enough-analyst-54434
06/24/2019, 4:24 PM$ pex gunicorn -o gunicorn.pex
$ unzip -qc gunicorn.pex .deps/gunicorn-19.9.0-py2.py3-none-any.whl/gunicorn-19.9.0.dist-info/entry_points.txt
[console_scripts]
gunicorn=gunicorn.app.wsgiapp:run
gunicorn_paster=gunicorn.app.pasterapp:run
[paste.server_runner]
main=gunicorn.app.pasterapp:paste_server
So you'd need an entry_point = "gunicorn.app.wsgiapp:run"
.able-farmer-8537
06/25/2019, 9:19 AM