I'm trying to package one of my projects with setuptools. This project deploys an executable script configured in the "setup.py":
scripts=['bin/check_mailq.py'],
The first line of the "check_mailq.py" file is:
#!/usr/bin/env python
If I execute "setup.py install", the first line is replaced with the python path of the machine/virtualenv. BTW if I package the project for pypi with the command:
python setup.py bdist_egg bdist_wheel upload
and then install it with pip in my production machine, the python path is wrong.
#!/home/kbyte/pynagmailplugins/venv/bin/python
instead of (example):
#!/opt/production_venv/bin/python
What's wrong?