Re: [Tutor] Need some help with setuptools for my project.

2015-04-08 Thread Alan Gauld
On 08/04/15 07:28, Anubhav Yadav wrote: really helped me. Thank you everyone again for helping me out. I would bring the thread alive again if I am stuck somewhere. Please don't! If it's a new problem start a new thread with new subject line. 1) The old thread will be miles back in the histor

Re: [Tutor] Need some help with setuptools for my project.

2015-04-08 Thread Anubhav Yadav
> Instead, I would advocate making a virtualenv iin your home directory into > which you install your packages. You can make as many as you like. > > After you've made a virtualenv, running the "pip" it supplies will install > into the virtualenv. Much safer, and you can do it all as yourself. > T

Re: [Tutor] Need some help with setuptools for my project.

2015-04-08 Thread Anubhav Yadav
Note the ":" before main, not ".". > That's it, that fixed the problem. Now I have a scorer binary. Thanks. A couple of more questions! 1) If I have install_requires in setup.py, then do I need requirements.txt? 2) Can I run ``python setup.py install`` or ``python setup.py develop`` with root pri

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Cameron Simpson
On 08Apr2015 08:53, Anubhav Yadav wrote: Note the ":" before main, not ".". That's it, that fixed the problem. Now I have a scorer binary. No, you have a "scorer" executable which is a script. A "binary" is a loadable machine code file. Thanks. A couple of more questions! 1) If I have i

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Cameron Simpson
On 07Apr2015 21:20, Anubhav Yadav 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 ‘Executabl

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Anubhav Yadav
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

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Anubhav Yadav
> > On your GitHub repository, you have a single file, scorer.py. I think that > this is a better approach in this instance than the multiple file approach > you have now taken (see below). > I am sorry I linked the master repository. See the structureCode branch[1]. > > > setuptools says that my

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Anubhav Yadav
You might consider packaging your project as a script so that it can be run > by the user from the command line. See: > https://docs.python.org/2/distutils/setupscript.html#installing-scripts > > Provided that you add something like #!/usr/bin/python to the top of > scorer.py, 'python setup.py inst

Re: [Tutor] Need some help with setuptools for my project.

2015-04-06 Thread Dylan Evans
On 6 April 2015 at 18:56:57, tutor-requ...@python.org (tutor-requ...@python.org) wrote: > Any help would be greatly appreciated. I apologize if my question does not > belongs to this mailing list. My project is hosted on github[1]. > > Thank you. > > [1] https://github.com/neo1691/scorer.py Y

Re: [Tutor] Need some help with setuptools for my project.

2015-04-06 Thread Alan Gauld
On 06/04/15 11:46, Anubhav Yadav wrote: Any help would be greatly appreciated. I apologize if my question does not belongs to this mailing list. My project is hosted on github[1]. Using the setup tools and creating/installing projects seems close enough to standard library functions that its o

[Tutor] Need some help with setuptools for my project.

2015-04-06 Thread Anubhav Yadav
Hi, I am new to python and still trying to get my concepts clear with respect to standard practices in python. I wrote a script which fetches the latest cricket scores from the internet and sends desktop notifications using pynotify. The project, initially supported both python2 as well as python3