Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: [Q] How to specify options for 'setup.py install' by environmentvariable?

Reply
Thread Tools

Re: [Q] How to specify options for 'setup.py install' by environmentvariable?

 
 
Makoto Kuwata
Guest
Posts: n/a
 
      06-10-2012
On Sun, Jun 10, 2012 at 11:55 AM, Ned Deily <(E-Mail Removed)> wrote:
> In article
> <(E-Mail Removed)>,
> *Makoto Kuwata <(E-Mail Removed)> wrote:
>
>> Hi,
>>
>> "setup.py install" command supports options such as --prefix,
>> --install-scripts, and so on.
>> For example:
>>
>> * $ python setup.py install --prefix=$PWD/local --install-scripts=$PWD/bin
>>
>> Question: is it possible to specify these options by environment variable?
>> I want to specify --prefix or --install-scripts options, but it is
>> too troublesome for me to specify them in command line every time.

>
> There are some environment variable options for Distutils-based (i.e.
> with setup.py) installations. *The supported method is to put
> frequently-used preferences into one of several configuration files.
> See
> http://docs.python.org/install/index...http://docs.py
> thon.org/install/index.html#inst-config-files


Thank you Ned,
but I can't find environment variable name on that page which is
equivarent to '--install-scripts' or other options.
$PYTHONHOME seems equivarent to --prefix option, but the following
reports error.

$ mkdir -p local/lib/python2.7/site-packages
$ PYTHONHOME=local python setup.py install
ImportError: No module named site

--
regards,
makoto kuwata
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: [Q] How to specify options for 'setup.py install' by environmentvariable? Makoto Kuwata Python 0 06-11-2012 12:30 AM
Re: [Q] How to specify options for 'setup.py install' by environmentvariable? Ned Deily Python 0 06-10-2012 06:51 AM
[Q] How to specify options for 'setup.py install' by environmentvariable? Makoto Kuwata Python 0 06-10-2012 01:55 AM
good compile options for g++ options to enforce good coding Cliff Martin C++ 1 01-31-2007 02:03 AM



Advertisments