#8 setup.py refuses to honour --prefix option

open
nobody
None
5
2009-05-21
2009-05-21
Tristan Miller
No

I want to install vinetto into /usr/local, but the install script seems to be hard-coded to install into /usr/share/vinetto:

[psy@weasel:~/src/vinetto-beta-0.07]$ sudo python setup.py install --prefix=/usr/local
root's password:
running install
running build
running build_py
creating build
creating build/lib
copying vinutils.py -> build/lib
copying vinreport.py -> build/lib
running build_scripts
creating build/scripts-2.6
copying and adjusting vinetto -> build/scripts-2.6
changing mode of build/scripts-2.6/vinetto from 644 to 755
running install_lib
creating /usr/local/lib64/python2.6
creating /usr/local/lib64/python2.6/site-packages
copying build/lib/vinutils.py -> /usr/local/lib64/python2.6/site-packages
copying build/lib/vinreport.py -> /usr/local/lib64/python2.6/site-packages
byte-compiling /usr/local/lib64/python2.6/site-packages/vinutils.py to vinutils.pyc
byte-compiling /usr/local/lib64/python2.6/site-packages/vinreport.py to vinreport.pyc
running install_scripts
copying build/scripts-2.6/vinetto -> /usr/local/bin
changing mode of /usr/local/bin/vinetto to 755
running install_data
creating /usr/share/vinetto
copying res/header -> /usr/share/vinetto
copying res/huffman -> /usr/share/vinetto
copying res/quantization -> /usr/share/vinetto
copying res/HtRepTemplate.html -> /usr/share/vinetto
running install_egg_info
Writing /usr/local/lib64/python2.6/site-packages/vinetto-0.06alpha-py2.6.egg-info

Discussion