Bug 1265632 - System python (python2.6) is overloaded
Summary: System python (python2.6) is overloaded
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: softwarecollections.org
Classification: Community
Component: rh-python34
Version: 1.0
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Python Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-23 11:52 UTC by marianne@tuxette.fr
Modified: 2016-02-02 18:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-02 18:20:22 UTC
Embargoed:


Attachments (Terms of Use)

Description marianne@tuxette.fr 2015-09-23 11:52:32 UTC
Description of problem:
When enabling the scl, the default python is overloaded

Version-Release number of selected component (if applicable):
rh-python34-2.0-5.el6.x86_64

How reproducible:
Install and enable the SCL 


Actual results:
python is python3.4 

Expected results:
python is python2.6 (system python)
python3 is python3.4 

Additional info:

Comment 1 Honza Horak 2015-09-25 07:31:08 UTC
Well, this is how the SCL should work. What is the problem?

Comment 2 marianne@tuxette.fr 2015-09-25 07:43:50 UTC
No linux distribution has set python3 as default (except Archlinux) 
I was expecting the same behavior we have in Fedora

Comment 3 Matej Stuchlik 2015-09-25 09:40:29 UTC
As Honza noted, this is the expected behavior and AFAIK how most SCLs behave. That said, I agree that with Python it doesn't make quite as much sense, given the incompatibilities between Python 2 and 3 and the state in Fedora etc.

I don't think we can do address this in the current RHSCL version without breaking things, but I'll definitely keep this in mind when planning the next version.

Thanks for the report, Marianne. :)

Matt

Comment 4 Honza Horak 2015-09-25 14:28:01 UTC
But what can be done with this? The only thing that got to my mind is not shipping 'python' binary in rh-python34 SCL and only ship 'python3' binary there.. is that what you meant, Matej? Or any other idea what to do?

Comment 5 marianne@tuxette.fr 2015-09-25 15:02:28 UTC
Actually python and python3 in the SCL are symbolic links to python3.4 not binary

Comment 6 Robert Kuska 2015-09-29 08:45:24 UTC
Virtualenv behaves the same so I wouldn't consider changing this in SCL.

Comment 7 Matej Stuchlik 2015-09-29 09:22:49 UTC
(In reply to Honza Horak from comment #4)
> But what can be done with this? The only thing that got to my mind is not
> shipping 'python' binary in rh-python34 SCL and only ship 'python3' binary
> there.. is that what you meant, Matej? Or any other idea what to do?

Correct, that was my idea.

Then again, as Robert noted, the current behavior is consistent with virtualenv's. I suppose it's a question of whether you think SCLs should behave more like virtualenv-like tools or more like the base distribution

(In reply to marianne from comment #5)
> Actually python and python3 in the SCL are symbolic links to python3.4 not
> binary

Right you are!

Comment 8 Petr Viktorin (pviktori) 2016-02-02 18:20:22 UTC
The behavior makes sense from SCL point of view (as Dan pointed out), and from the Python point of view (since it matches virtualenv). So I'm closing the bug.

Thanks for the report though, Marianne! Don't let this discourage you from letting us know when things look broken.


Note You need to log in before you can comment on or make changes to this bug.