On Apr 14, 2016 11:52 PM, "Luí­s de Sousa" <distutils-sig@python.org> wrote:
>
> Hi Marius, thank you for the reply.
>
> If I remove the line # coding=utf8, I get the following error:
>
> $ python setup.py bdist_wheel --universal
>   File "setup.py", line 18
> SyntaxError: Non-ASCII character '\xc3' in file setup.py on line 18, but
no encoding declared; see http://www.python.org/peps/pep-0263.html for
details
>
> I created main functions in each of these scripts and altered the entry
points bit to:
>
> entry_points={
>     'console_scripts': [
>         'scriptA=proj:scriptA:main',
>         'scriptB=proj:scriptB:main'
>     ],
> },
>
> This way I get this error:
>
> $ python setup.py bdist_wheel --universal
> error in proj setup command: ("EntryPoint must be in 'name=module:attrs
[extras]' format", 'scriptA=proj:scriptA:main')

Here your problem is that entry points should have only one : in them. You
want

proj.scriptA:main

(This means: do 'import proj.scriptA', then call 'proj.scriptA.main'. You
can have as many dots as you want on either side of the :, and the colon
marks how much of your dotted string gets passed to 'import'.)

-n
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to