* [gentoo-user] change python version for special program
@ 2012-10-02 17:43 Kraus Philipp
2012-10-02 17:52 ` Michael Mol
2012-10-02 19:01 ` yegle
0 siblings, 2 replies; 8+ messages in thread
From: Kraus Philipp @ 2012-10-02 17:43 UTC (permalink / raw
To: gentoo-user
Hello,
I have installed Python 2.7 & 3.2.2 on my Gentoo box, but I would like to use Scons, which runs at the moment under Python < 3.
I have installed Scons with "python2.7 setup.py", but if I run "scons" on command line, it creates the message, that it runs not on Python 3,
so can I setup manually that scons should use the Python 2.7 interpreter?
Thanks
Phil
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] change python version for special program
2012-10-02 17:43 [gentoo-user] change python version for special program Kraus Philipp
@ 2012-10-02 17:52 ` Michael Mol
2012-10-02 18:11 ` [gentoo-user] " Remy Blank
2012-10-02 18:37 ` [gentoo-user] " Kraus Philipp
2012-10-02 19:01 ` yegle
1 sibling, 2 replies; 8+ messages in thread
From: Michael Mol @ 2012-10-02 17:52 UTC (permalink / raw
To: gentoo-user
On Tue, Oct 2, 2012 at 1:43 PM, Kraus Philipp
<philipp.kraus@flashpixx.de> wrote:
> Hello,
>
> I have installed Python 2.7 & 3.2.2 on my Gentoo box, but I would like to use Scons, which runs at the moment under Python < 3.
> I have installed Scons with "python2.7 setup.py", but if I run "scons" on command line, it creates the message, that it runs not on Python 3,
> so can I setup manually that scons should use the Python 2.7 interpreter?
As root:
eselect python list
I'm surprised you had to take the setup.py install route. Is scons not
available in someone's overlay?
--
:wq
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: change python version for special program
2012-10-02 17:52 ` Michael Mol
@ 2012-10-02 18:11 ` Remy Blank
2012-10-02 20:39 ` Michael Mol
2012-10-02 18:37 ` [gentoo-user] " Kraus Philipp
1 sibling, 1 reply; 8+ messages in thread
From: Remy Blank @ 2012-10-02 18:11 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 394 bytes --]
Michael Mol wrote:
> I'm surprised you had to take the setup.py install route. Is scons not
> available in someone's overlay?
It's in portage:
$ equery list -p -o scons
* Searching for scons ...
[-P-] [ ] dev-util/scons-2.0.1:0
[-P-] [ ~] dev-util/scons-2.0.1-r1:0
[-P-] [ ] dev-util/scons-2.1.0:0
[-P-] [ ] dev-util/scons-2.2.0:0
Latest version, stable even.
-- Remy
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] change python version for special program
2012-10-02 17:52 ` Michael Mol
2012-10-02 18:11 ` [gentoo-user] " Remy Blank
@ 2012-10-02 18:37 ` Kraus Philipp
1 sibling, 0 replies; 8+ messages in thread
From: Kraus Philipp @ 2012-10-02 18:37 UTC (permalink / raw
To: gentoo-user
Am 02.10.2012 um 19:52 schrieb Michael Mol:
> On Tue, Oct 2, 2012 at 1:43 PM, Kraus Philipp
> <philipp.kraus@flashpixx.de> wrote:
>> Hello,
>>
>> I have installed Python 2.7 & 3.2.2 on my Gentoo box, but I would like to use Scons, which runs at the moment under Python < 3.
>> I have installed Scons with "python2.7 setup.py", but if I run "scons" on command line, it creates the message, that it runs not on Python 3,
>> so can I setup manually that scons should use the Python 2.7 interpreter?
>
> As root:
>
> eselect python list
With this option I can setup the global Python version. Can I change only for one program ?
>
> I'm surprised you had to take the setup.py install route. Is scons not
> available in someone's overlay?
I'm testing different versions, because I would like to debug a scons toolkit.
So I haven't installed the portage Scons version, I have downloaded the tarball
and installed them within my home
Phil
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] change python version for special program
2012-10-02 17:43 [gentoo-user] change python version for special program Kraus Philipp
2012-10-02 17:52 ` Michael Mol
@ 2012-10-02 19:01 ` yegle
2012-10-02 19:22 ` Kraus Philipp
1 sibling, 1 reply; 8+ messages in thread
From: yegle @ 2012-10-02 19:01 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 544 bytes --]
Create a virtualenv would be a better solution.
Google virtualenv
--
http://about.me/yegle
On Tuesday, October 2, 2012 at 13:43, Kraus Philipp wrote:
> Hello,
>
> I have installed Python 2.7 & 3.2.2 on my Gentoo box, but I would like to use Scons, which runs at the moment under Python < 3.
> I have installed Scons with "python2.7 setup.py", but if I run "scons" on command line, it creates the message, that it runs not on Python 3,
> so can I setup manually that scons should use the Python 2.7 interpreter?
>
> Thanks
>
> Phil
[-- Attachment #2: Type: text/html, Size: 1143 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] change python version for special program
2012-10-02 19:01 ` yegle
@ 2012-10-02 19:22 ` Kraus Philipp
2012-10-03 14:39 ` Paul Ezvan
0 siblings, 1 reply; 8+ messages in thread
From: Kraus Philipp @ 2012-10-02 19:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]
Thanks, I don't have read anything about it, it is my first time, but I think it is the best solution for my problem
Am 02.10.2012 um 21:01 schrieb yegle:
> Create a virtualenv would be a better solution.
>
> Google virtualenv
>
> --
> http://about.me/yegle
>
> On Tuesday, October 2, 2012 at 13:43, Kraus Philipp wrote:
>
>> Hello,
>>
>> I have installed Python 2.7 & 3.2.2 on my Gentoo box, but I would like to use Scons, which runs at the moment under Python < 3.
>> I have installed Scons with "python2.7 setup.py", but if I run "scons" on command line, it creates the message, that it runs not on Python 3,
>> so can I setup manually that scons should use the Python 2.7 interpreter?
>>
>> Thanks
>>
>> Phil
>
[-- Attachment #2: Type: text/html, Size: 1571 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: change python version for special program
2012-10-02 18:11 ` [gentoo-user] " Remy Blank
@ 2012-10-02 20:39 ` Michael Mol
0 siblings, 0 replies; 8+ messages in thread
From: Michael Mol @ 2012-10-02 20:39 UTC (permalink / raw
To: gentoo-user
On Tue, Oct 2, 2012 at 2:11 PM, Remy Blank <remy.blank@pobox.com> wrote:
> Michael Mol wrote:
>> I'm surprised you had to take the setup.py install route. Is scons not
>> available in someone's overlay?
>
> It's in portage:
>
> $ equery list -p -o scons
> * Searching for scons ...
> [-P-] [ ] dev-util/scons-2.0.1:0
> [-P-] [ ~] dev-util/scons-2.0.1-r1:0
> [-P-] [ ] dev-util/scons-2.1.0:0
> [-P-] [ ] dev-util/scons-2.2.0:0
>
> Latest version, stable even.
That's what I get for assuming. Power's out at home, so I couldn't
even run a quick 'eix'...
--
:wq
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] change python version for special program
2012-10-02 19:22 ` Kraus Philipp
@ 2012-10-03 14:39 ` Paul Ezvan
0 siblings, 0 replies; 8+ messages in thread
From: Paul Ezvan @ 2012-10-03 14:39 UTC (permalink / raw
To: gentoo-user
Le mardi 02 octobre 2012 à 21:22 +0200, Kraus Philipp a écrit :
> Am 02.10.2012 um 21:01 schrieb yegle:
>
> > Create a virtualenv would be a better solution.
> >
> >
> > Google virtualenv
> >
> >
> > --
> > http://about.me/yegle
>
> Thanks, I don't have read anything about it, it is my first time, but
I think it is the best solution for my problem
Hi,
just editing the shebang to point to python 2.7 wouldn't solve your
problem ?
Cheers,
Paul
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-10-03 14:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 17:43 [gentoo-user] change python version for special program Kraus Philipp
2012-10-02 17:52 ` Michael Mol
2012-10-02 18:11 ` [gentoo-user] " Remy Blank
2012-10-02 20:39 ` Michael Mol
2012-10-02 18:37 ` [gentoo-user] " Kraus Philipp
2012-10-02 19:01 ` yegle
2012-10-02 19:22 ` Kraus Philipp
2012-10-03 14:39 ` Paul Ezvan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox