claf / go-tool

Automatically exported from code.google.com/p/go-tool (code from Trent Mick)
Other
0 stars 0 forks source link

Setupscript doesn't install the go script in the path #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The setup.py should declare the scripts, eg: scripts=['src/lib/go.py']

See http://docs.python.org/distutils/setupscript.html#installing-scripts

Original issue reported on code.google.com by ionel...@gmail.com on 31 Aug 2009 at 8:40

GoogleCodeExporter commented 9 years ago
$ pypm install go
$ pypm f go
/Users/sridharr/.local/lib 
/Users/sridharr/.local/lib/python2.6 
/Users/sridharr/.local/lib/python2.6/site-packages 
/Users/sridharr/.local/lib/python2.6/site-packages/go-1.2.1-py2.6.egg-info 
/Users/sridharr/.local/lib/python2.6/site-packages/go.py

So I ran the following:

$ python -m go

Then go asked if it wants me to add go bash function to ~/.profile. Maybe this 
should be specified in the install notes .. that one should run go initially as 
"python -m go". 

But having a script is probably a little easier (as long as the BATCH/bash 
function 
will override the go script)

Original comment by Sridhar....@gmail.com on 29 Sep 2009 at 1:20

GoogleCodeExporter commented 9 years ago
Basically 'pypm install go' doesn't do the easy thing

Original comment by tre...@gmail.com on 7 Oct 2009 at 11:30

GoogleCodeExporter commented 9 years ago
.. or 'pip install go' or 'easy_install go' .. or even 'python setup.py 
install', I believe. You could use 
setuptools/Distribute to implement scripts. The advantage is that there will be 
a nice .exe wrapper on Windows. 
The script can be named go-setup in order to avoid name clash with the actual 
go shell/batch function.

Original comment by Sridhar....@gmail.com on 1 Apr 2010 at 10:44

GoogleCodeExporter commented 9 years ago
Here's a patch to add a `go-setup' script:
https://github.com/srid/go-tool/commit/4c5fb4baa9e78423cb072bed0bf1b75a30ced194
(requires the previous commit for setuptools)

Original comment by Sridhar....@gmail.com on 10 Feb 2011 at 7:33