Re: [gentoo-user] IPython with Python3 - what magic am I missing?

2013-06-21 Thread Helmut Jarausch

On 06/20/2013 04:53:00 PM, Dustin C. Hatch wrote:
If you built dev-python/ipython with PYTHON_TARGETS=python3_2, then  
there will be a /usr/bin/ipython-python3.2 script that will launch  
IPython with the Python 3.2 interpreter, even if the default Python  
implementation is 2.7.


Yes, thanks,
that works!

Helmut



Re: [gentoo-user] IPython with Python3 - what magic am I missing?

2013-06-20 Thread Mateusz Kowalczyk
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 20/06/13 08:31, Helmut Jarausch wrote:
 Hi,
 
 I'd like start IPython with Python3 as underlying Python
 interpretor. GenToo has some magic to invoke IPython which I don't
 understand.
 
 /usr/bin/ipython is a symlink to /usr/bin/python-exec which is a
 script invoking the binary /usr/bin/python-exec-c
 
 I don't have Python3 as standard Python version (too dangerous with
  Portage?)

Portage does just fine with Python3. In fact, it's actually faster (I
hear claims of upto 30% speed improvement but I haven't seen any data
nor tested it myself.).

 
 How can I convince IPython to use Python3?
 
 I've tried python3
 /usr/lib64/python3.3/site-packages/spyderlib/widgets/ipython.py but
 hits just quits without any visible action.
 
 Many thanks for a hint, Helmut
 


- -- 
Mateusz K.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJRwrP3AAoJEM1mucMq2pqXFSMP/2QmDBlSM0y7AengDEVw/+W6
Wsnx01k+MDCBaGlA3sy6a0ZzrdAB/ARaKrxms6lpvVvIKOmSlWhfA2ucwnyK8OpW
8cdm89YQ+FlZkKdDXUGGfOoKPc8q3W4Zxq1I6pExvoQve5xX8Bbux4yzv3pmFO4O
php7ID2C43ozWM/e+ogySnAyYJCDhT69NOReF2DfU30UXjuaBT004dMZ08siwLlF
zk04Yu00nmSN9rOjbfP7g6MhZW4+CaHmnb15KHVzMWKYDbfkIvHl6BCFrinISDNL
HwCEGAD9qK++17M60CByGoi41FTgbedRlCw8fCWLRJMJMDWOZpGTYJ5i+Rb2OqjZ
sO8h1/H/3BCEojsRhHjgjb067OgM9ADJ/I9C5/QMMSy55DqWDzoWDEjuZg77NKiM
HdO3de4RXA/p/vx8H1VMn4+7S6j5ChrL5lYzKL0nrmlcGI1RsCxs9MRDQ3yY9a62
smN2RHvuiBxR0KNCpiGAvt6XsbFVETb8EmmgLRi26fk2bPRn8z10sxW8fobfJJ9r
xXGMS/j2mvU+G4Gn0SdDb4Fn8E8mS7gKW1ofR8gIo1hB5DMzYdZBfdI8ODMrvLP2
8WnGFnbuVCsPN96D0vFuFGp9NWMIbf7tVQyPJ+9CCPCqJHN3YFn+/zO+KG4tAfHU
y3MjYfrjml5nglUiUuL8
=SpVg
-END PGP SIGNATURE-



Re: [gentoo-user] IPython with Python3 - what magic am I missing?

2013-06-20 Thread Dale
Mateusz Kowalczyk wrote:
 On 20/06/13 08:31, Helmut Jarausch wrote:
  Hi,

  I'd like start IPython with Python3 as underlying Python
  interpretor. GenToo has some magic to invoke IPython which I don't
  understand.

  /usr/bin/ipython is a symlink to /usr/bin/python-exec which is a
  script invoking the binary /usr/bin/python-exec-c

  I don't have Python3 as standard Python version (too dangerous with
   Portage?)

 Portage does just fine with Python3. In fact, it's actually faster (I
 hear claims of upto 30% speed improvement but I haven't seen any data
 nor tested it myself.).


Is there a way to tell portage to use python3 by default then?  I have
it here so maybe it is already using python3?  Anyway to know?

Dale


:-)  :-)


-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!



Re: [gentoo-user] IPython with Python3 - what magic am I missing?

2013-06-20 Thread Adam Carter

  Is there a way to tell portage to use python3 by default then?  I have it
 here so maybe it is already using python3?  Anyway to know?


I just tried eselect python set 2, the grepped ps when running an emerge
--sync:
# eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *
# ps -ef | grep emerge
root  6242  6127  2 22:29 pts/000:00:00 /usr/bin/python3.2
/usr/bin/emerge --sync

So, just the usual.


Re: [gentoo-user] IPython with Python3 - what magic am I missing?

2013-06-20 Thread Neil Bothwick
On Thu, 20 Jun 2013 07:16:31 -0500, Dale wrote:

 Is there a way to tell portage to use python3 by default then? 

emerge it with the python3 USE flag.

 I have
 it here so maybe it is already using python3?  Anyway to know?

ps aux | grep emerge

while emerge is running.


-- 
Neil Bothwick

Give a man a fish and you feed him for a day;
Teach him to use the Net and he won't bother you for weeks.


signature.asc
Description: PGP signature


Re: [gentoo-user] IPython with Python3 - what magic am I missing?

2013-06-20 Thread Dustin C. Hatch

On 6/20/2013 02:31, Helmut Jarausch wrote:

Hi,

I'd like start IPython with Python3 as underlying Python interpretor.
GenToo has some magic to invoke IPython which I don't understand.

/usr/bin/ipython is a symlink to /usr/bin/python-exec which is a script
invoking the binary /usr/bin/python-exec-c

I don't have Python3 as standard Python version (too dangerous with
Portage?)

How can I convince IPython to use Python3?

I've tried
python3 /usr/lib64/python3.3/site-packages/spyderlib/widgets/ipython.py
but hits just quits without any visible action.

Many thanks for a hint,
Helmut

If you built dev-python/ipython with PYTHON_TARGETS=python3_2, then 
there will be a /usr/bin/ipython-python3.2 script that will launch 
IPython with the Python 3.2 interpreter, even if the default Python 
implementation is 2.7.


--
♫Dustin
http://dustin.hatch.name/



Re: [gentoo-user] IPython with Python3 - what magic am I missing?

2013-06-20 Thread Dale
Neil Bothwick wrote:
 On Thu, 20 Jun 2013 07:16:31 -0500, Dale wrote:

 Is there a way to tell portage to use python3 by default then?

 emerge it with the python3 USE flag.

I added that in package.use for future reference.  That took out the
python2 support.  I also added this to make.conf:

PYTHON_TARGETS=python3_2




 I have
 it here so maybe it is already using python3?  Anyway to know?

 ps aux | grep emerge

 while emerge is running.



Now I get this:

root@fireball / # ps aux | grep emerge
root 23969 92.5  0.5 184900 94644 pts/1RN+  12:25   0:01
/usr/bin/python3 /usr/bin/emerge -pv portage
root 23977  0.0  0.0   8596   880 pts/2S+   12:25   0:00 grep
--colour=auto emerge
root@fireball / #

By the way, you better be fast to get that too.  It seems emerge is
faster with python3.  Now to sync and do some real testing.  ;-)

Thanks Neil and Adam.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!