how to get a particular git branch of sympy installed?

15 views
Skip to first unread message

Comer Duncan

unread,
Aug 5, 2012, 2:26:13 PM8/5/12
to sy...@googlegroups.com
Hi,

I have a few branches of sympy. Among them is Stefan Krastanov's branch. I want to install (sudo python2.7 setup.py install)  it so that when I run ipython notebook --profile=sympy from anywhere it will use Stefan's.  So far I have tried checkout of his branch and find that his stuff is indeed there. I have also tried the 'sudo python2.7 setup.py install' but it does not provide what I want, branch-wise.  I have downloaded ipython and built it using python2.7 (which comes from macports).  The path to macports bin directory is first in my PATH (am running bash).  What do I need to do to get the functionality with the desired sympy from Stefan's branch?

Thanks for your help and advice.

Comer

Ondřej Čertík

unread,
Aug 5, 2012, 3:15:11 PM8/5/12
to sy...@googlegroups.com
Hi Comer,

On Sun, Aug 5, 2012 at 11:26 AM, Comer Duncan <comer....@gmail.com> wrote:
> Hi,
>
> I have a few branches of sympy. Among them is Stefan Krastanov's branch. I
> want to install (sudo python2.7 setup.py install) it so that when I run
> ipython notebook --profile=sympy from anywhere it will use Stefan's. So far
> I have tried checkout of his branch and find that his stuff is indeed there.
> I have also tried the 'sudo python2.7 setup.py install' but it does not
> provide what I want, branch-wise. I have downloaded ipython and built it

That's weird --- does it mean that some other version (branch) of
SymPy is picked up instead?

> using python2.7 (which comes from macports). The path to macports bin
> directory is first in my PATH (am running bash). What do I need to do to
> get the functionality with the desired sympy from Stefan's branch?

I personally use Ubuntu, but the principle should be the same in Mac.
How did you
install ipython? Using "sudo python2.7 setup.py install"? If so, then
you should do
the same for SymPy. Maybe Aaron or others can comment.

Ondrej

P.S. I personally just use virtualenv, or install things into ~/usr using:

python setup.py install --prefix=$HOME/usr

and put "$HOME/usr/lib/python2.7/site-packages/" into my PYTHONPATH.
I never use "sudo" for installing things.

Aaron Meurer

unread,
Aug 5, 2012, 4:42:44 PM8/5/12
to sy...@googlegroups.com
You can also try setupegg.py develop, which will setup some symbolic
links to make the globally installed sympy always point to the git
version. Then, whatever branch you checkout with git will
automatically become the globally installed version.

Regarding your other way (and actually this way too), make sure that
the command "python2.7" points to the macports Python (run "which
python2.7"). If you just use ./setup.py instead of python setup.py,
it will use the default Python (the first in your path). You can also
try /full/path/to/macports/python2.7 setup.py (probably
/opt/bin/python2.7).

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

krastano...@gmail.com

unread,
Aug 5, 2012, 4:43:32 PM8/5/12
to sy...@googlegroups.com
I am unsure how setup.py works, however it may need to be updated with
the knowledge about my new module (as it is still WIP I have not done
that yet).

I personally just add my git folder to the PATH, so I never install it.

Comer

unread,
Aug 6, 2012, 2:31:57 PM8/6/12
to sy...@googlegroups.com
Aaron,


On Sunday, August 5, 2012 4:42:44 PM UTC-4, Aaron Meurer wrote:
You can also try setupegg.py develop, which will setup some symbolic
links to make the globally installed sympy always point to the git
version.  Then, whatever branch you checkout with git will
automatically become the globally installed version.

I did this and it seems to work fine.  Thanks.

Comer 

> To unsubscribe from this group, send email to sympy+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages