Monday, April 26, 2010

Re: OS X install, not in home directory?

Are you running setup using the system python, or a separate one tied
to your account (such as in a virtual env)? If the latter then try specifying
the full path to the system python to run setup. Also, if you have the
PYTHONPATH environment variable set, you might try unsetting it while
running the install. (You can do this in a subshell and not affect other
operations.)

Bill

On Sat, Apr 24, 2010 at 9:36 AM, pjmorse <flashesofpanic@gmail.com> wrote:
> On Apr 24, 3:03 am, Rob <rob.nikan...@gmail.com> wrote:
>> Maybe this is more of a general python question, but when I run `sudo
>> python setup.py install` it insists on putting the django package in ~/
>> Library/Python/2.6/site-packages.  I want to install it in the system
>> site-packages, so it get's picked up by apache and mod_wsgi.  For now
>> I'll hand copy the files, but there must be a way with setup.py.  ?
>
> Try the --prefix or --install-base options to `setup.py install`.
> `python setup.py install --help` will run down the options for you; I
> think --prefix=/Library/Python/2.6/site-packages/ is worth a shot?
>
> pjm
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate