Closed jjhelmus closed 7 years ago
pip seems to use the following template for entry points (at least when installing wheels):
maker.script_template = """# -*- coding: utf-8 -*-
import re
import sys
from %(module)s import %(import_name)s
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(%(func)s())
"""
I would suggest that both conda and conda-build use this template as it seems the most general. I will put together PRs implementing this in both projects.
Hi there, thank you for your contribution to Conda!
This issue has been automatically locked since it has not had recent activity after it was closed.
Please open a new issue if needed.
The entry point scripts which are created by conda for
noarch: python
packages differ slightly from those created for standard packages by conda-build. The templates for the scripts are:conda:
conda-build:
I've found at least one example where the template used by conda produces a script which does not work but when used with the conda-build template the script run fine.