On 07Apr2015 21:20, Anubhav Yadav <anubhav1...@gmail.com> wrote:
I apologise, my method was for distutils, not setuptools. I get the two
muddled. The mechanism for creating a console script like you describe with
setuptools is described here[1]. The post you linked also has a section on
it under the heading ‘Executable scripts’. It allows for the multiple file
approach you have.

This is it, here's what I did:

I edited my setup.py and added the following:
 entry_points={
       'console_scripts':[
           'scorer = scorer.app.main'
           ]
       },

My megacli module installs its "mcli" script like this:

   'entry_points': {
     'console_scripts': [
         'mcli = cs.app.megacli:main',
         ],

Note the ":" before main, not ".".

Cheers,
Cameron Simpson <c...@zip.com.au>

I think... Therefore I ride.  I ride... Therefore I am.
       - Mark Pope <erec...@yarrow.wt.uwa.edu.au>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to