Discussion:
[Bug 59370] python, NEW: Python-setuptools error, when using easy_install or python setup.py - (error: byte-compiling is disabled)
Matev¾ Bertoncelj
2010-05-19 10:56:53 UTC
Permalink
https://qa.mandriva.com/show_bug.cgi?id=59370


RPM Package: python-2.6.5-2mdv2010.1.src.rpm,
python-setuptools-0.6c11-1mdv2010.1.src.rpm
Summary: Python-setuptools error, when using easy_install or
python setup.py - (error: byte-compiling is disabled)
Classification: Mandriva Linux
Product: Mandriva Linux
Version: Cooker
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: major
Priority: normal
Component: Core Packages
AssignedTo: ***@mandriva.com
ReportedBy: ***@tiin.com
QAContact: ***@mandrivalinux.org


Description of problem:

Python-setuptools is issuing warnings like -
warning: build_py: byte-compiling is disabled, skipping
or exiting with error -
error: byte-compiling is disabled,
when installing packages.

In case of error, installation stops. In case of only warnings, installation
ends successfully and the concerned package works.

I found only one package, which entirely refuses to install, that is Pylons.

If i remember right, then immediately after 2010.1 alpha2 installation this
still worked OK.

There is no such problem on MDV2010.0 and prior.



Version-Release number of selected component (if applicable):

python-2.6.5-2mdv2010.1, python-setuptools-0.6c11-1mdv2010.1


How reproducible:

Always when installing with "python setup.py install" or easy_install.


Steps to Reproduce:
1. easy_install -U Pylons
2.
3.
--
Configure bugmail: https://qa.mandriva.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Ahmad Samir (triage team)
2010-05-19 21:17:22 UTC
Permalink
https://qa.mandriva.com/show_bug.cgi?id=59370

Summary : Python-setuptools error, when using easy_install or python setup.py - (error: byte-compiling is disabled)
Product : Mandriva Linux
Component : Core Packages
Version : Cooker
RPM Package: python
Status : RESOLVED
Severity : major
Priority : normal
Assigned To: ***@mandriva.org
Reported By: ***@tiin.com


Ahmad Samir (triage team) <***@mandriva.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
AssignedTo|***@mandriva.com |***@mandriva.org
RPM Package|python-2.6.5-2mdv2010.1.src |python
|.rpm, |
|python-setuptools-0.6c11-1m |
|dv2010.1.src.rpm |




--- Comment #1 from Ahmad Samir (triage team) <***@mandriva.org> 2010-05-19 23:17:20 CEST ---
byte-comiling has been disabled by default for a long time c.f.
http://lists.mandriva.com/cooker/2008-10/msg00437.php

there's been a recent discussion about this recently on the Maintainer ML:
http://lists.mandriva.com/maintainers/2010-03/msg00173.php (see the whole
thread/replies).

You can override this by using PYTHONDONTWRITEBYTECODE, see this for an
example:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python-enthought-mayavi/current/SPECS/python-enthought-mayavi.spec?revision=537676&view=markup

or permanently by editing /etc/profile.d/30python.sh (or
/etc/profile.d/30python.csh depending on your shell).

On any event that's the intended behaviour, closing.



----------------------------------------------------------------------------
Original Bug Text:


Description of problem:

Python-setuptools is issuing warnings like -
warning: build_py: byte-compiling is disabled, skipping
or exiting with error -
error: byte-compiling is disabled,
when installing packages.

In case of error, installation stops. In case of only warnings, installation ends successfully and the concerned package works.

I found only one package, which entirely refuses to install, that is Pylons.

If i remember right, then immediately after 2010.1 alpha2 installation this still worked OK.

There is no such problem on MDV2010.0 and prior.



Version-Release number of selected component (if applicable):

python-2.6.5-2mdv2010.1, python-setuptools-0.6c11-1mdv2010.1


How reproducible:

Always when installing with "python setup.py install" or easy_install.


Steps to Reproduce:
1. easy_install -U Pylons
2.
3.
--
Configure bugmail: https://qa.mandriva.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Matev¾ Bertoncelj
2010-05-20 08:02:05 UTC
Permalink
https://qa.mandriva.com/show_bug.cgi?id=59370

Summary : Python-setuptools error, when using easy_install or python setup.py - (error: byte-compiling is disabled)
Product : Mandriva Linux
Component : Core Packages
Version : Cooker
RPM Package: python
Status : RESOLVED
Severity : major
Priority : normal
Assigned To: ***@mandriva.org
Reported By: ***@tiin.com





--- Comment #2 from Matev¾ Bertoncelj <***@tiin.com> 2010-05-20 10:02:03 CEST ---
Thank you for explanation.

I think, such change of behaviour is not consistent and should not be done,
except if really really necessary (and not just in this case and even if Debian
is doing it). Or transition to Python 3 could be used for such changing.

Maybe solution would be, when python-setuptools package is installed,
PYTHONDONTWRITEBYTECODE should be set accordingly in
/etc/profile.d/30python.sh.

If someone installs setuptools, then he has intent to use it and
PYTHONDONTWRITEBYTECODE must be modified, so it is the same. And you cant
forbid people to modify /etc/profile.d/30python.sh anyway.



----------------------------------------------------------------------------
Original Bug Text:


Description of problem:

Python-setuptools is issuing warnings like -
warning: build_py: byte-compiling is disabled, skipping
or exiting with error -
error: byte-compiling is disabled,
when installing packages.

In case of error, installation stops. In case of only warnings, installation ends successfully and the concerned package works.

I found only one package, which entirely refuses to install, that is Pylons.

If i remember right, then immediately after 2010.1 alpha2 installation this still worked OK.

There is no such problem on MDV2010.0 and prior.



Version-Release number of selected component (if applicable):

python-2.6.5-2mdv2010.1, python-setuptools-0.6c11-1mdv2010.1


How reproducible:

Always when installing with "python setup.py install" or easy_install.


Steps to Reproduce:
1. easy_install -U Pylons
2.
3.



--
Configure bugmail: https://qa.mandriva.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Matev¾ Bertoncelj
2010-05-20 08:26:04 UTC
Permalink
https://qa.mandriva.com/show_bug.cgi?id=59370

Summary : Python-setuptools error, when using easy_install or python setup.py - (error: byte-compiling is disabled)
Product : Mandriva Linux
Component : Core Packages
Version : Cooker
RPM Package: python
Status : RESOLVED
Severity : major
Priority : normal
Assigned To: ***@mandriva.org
Reported By: ***@tiin.com





--- Comment #3 from Matev¾ Bertoncelj <***@tiin.com> 2010-05-20 10:26:03 CEST ---
Well, i think it's bug, not a feature.

I mean, setuptools should work after installation, without the need for editing
some ENV variables by hand.

Once more, thank you for explanation, but don't close.



----------------------------------------------------------------------------
Original Bug Text:


Description of problem:

Python-setuptools is issuing warnings like -
warning: build_py: byte-compiling is disabled, skipping
or exiting with error -
error: byte-compiling is disabled,
when installing packages.

In case of error, installation stops. In case of only warnings, installation ends successfully and the concerned package works.

I found only one package, which entirely refuses to install, that is Pylons.

If i remember right, then immediately after 2010.1 alpha2 installation this still worked OK.

There is no such problem on MDV2010.0 and prior.



Version-Release number of selected component (if applicable):

python-2.6.5-2mdv2010.1, python-setuptools-0.6c11-1mdv2010.1


How reproducible:

Always when installing with "python setup.py install" or easy_install.


Steps to Reproduce:
1. easy_install -U Pylons
2.
3.



--
Configure bugmail: https://qa.mandriva.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Ahmad Samir (triage team)
2010-05-20 08:51:44 UTC
Permalink
https://qa.mandriva.com/show_bug.cgi?id=59370

Summary : Python-setuptools error, when using easy_install or python setup.py - (error: byte-compiling is disabled)
Product : Mandriva Linux
Component : Core Packages
Version : Cooker
RPM Package: python
Status : REOPENED
Severity : major
Priority : normal
Assigned To: ***@mandriva.org
Reported By: ***@tiin.com


Ahmad Samir (triage team) <***@mandriva.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |




--- Comment #4 from Ahmad Samir (triage team) <***@mandriva.org> 2010-05-20 10:51:42 CEST ---
We can keep it open till we hear from the maintainer, his call.



----------------------------------------------------------------------------
Original Bug Text:


Description of problem:

Python-setuptools is issuing warnings like -
warning: build_py: byte-compiling is disabled, skipping
or exiting with error -
error: byte-compiling is disabled,
when installing packages.

In case of error, installation stops. In case of only warnings, installation ends successfully and the concerned package works.

I found only one package, which entirely refuses to install, that is Pylons.

If i remember right, then immediately after 2010.1 alpha2 installation this still worked OK.

There is no such problem on MDV2010.0 and prior.



Version-Release number of selected component (if applicable):

python-2.6.5-2mdv2010.1, python-setuptools-0.6c11-1mdv2010.1


How reproducible:

Always when installing with "python setup.py install" or easy_install.


Steps to Reproduce:
1. easy_install -U Pylons
2.
3.
--
Configure bugmail: https://qa.mandriva.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Michael Scherer
2010-05-31 09:57:44 UTC
Permalink
https://qa.mandriva.com/show_bug.cgi?id=59370

Summary : Python-setuptools error, when using easy_install or python setup.py - (error: byte-compiling is disabled)
Product : Mandriva Linux
Component : Core Packages
Version : Cooker
RPM Package: python
Status : RESOLVED
Severity : major
Priority : normal
Assigned To: ***@mandriva.org
Reported By: ***@tiin.com


Michael Scherer <***@mandriva.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID




--- Comment #5 from Michael Scherer <***@mandriva.org> 2010-05-31 11:57:42 CEST ---
The problem lies in Pylons, that's making assumptions that it should not (
like "everybody will bytecompile python" ). This were true in the past, but it
isn't anymore, so Pylons should respect people setting, like the others, and
not abort installation because of this.

Hence, I think that's not a problem in our python packages, and so I close
this.



----------------------------------------------------------------------------
Original Bug Text:


Description of problem:

Python-setuptools is issuing warnings like -
warning: build_py: byte-compiling is disabled, skipping
or exiting with error -
error: byte-compiling is disabled,
when installing packages.

In case of error, installation stops. In case of only warnings, installation ends successfully and the concerned package works.

I found only one package, which entirely refuses to install, that is Pylons.

If i remember right, then immediately after 2010.1 alpha2 installation this still worked OK.

There is no such problem on MDV2010.0 and prior.



Version-Release number of selected component (if applicable):

python-2.6.5-2mdv2010.1, python-setuptools-0.6c11-1mdv2010.1


How reproducible:

Always when installing with "python setup.py install" or easy_install.


Steps to Reproduce:
1. easy_install -U Pylons
2.
3.
--
Configure bugmail: https://qa.mandriva.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Matev¾ Bertoncelj
2010-06-01 08:38:15 UTC
Permalink
https://qa.mandriva.com/show_bug.cgi?id=59370

Summary : Python-setuptools error, when using easy_install or python setup.py - (error: byte-compiling is disabled)
Product : Mandriva Linux
Component : Core Packages
Version : Cooker
RPM Package: python
Status : RESOLVED
Severity : major
Priority : normal
Assigned To: ***@mandriva.org
Reported By: ***@tiin.com





--- Comment #6 from Matev¾ Bertoncelj <***@tiin.com> 2010-06-01 10:38:12 CEST ---
OK then, sorry for the noise.



----------------------------------------------------------------------------
Original Bug Text:


Description of problem:

Python-setuptools is issuing warnings like -
warning: build_py: byte-compiling is disabled, skipping
or exiting with error -
error: byte-compiling is disabled,
when installing packages.

In case of error, installation stops. In case of only warnings, installation ends successfully and the concerned package works.

I found only one package, which entirely refuses to install, that is Pylons.

If i remember right, then immediately after 2010.1 alpha2 installation this still worked OK.

There is no such problem on MDV2010.0 and prior.



Version-Release number of selected component (if applicable):

python-2.6.5-2mdv2010.1, python-setuptools-0.6c11-1mdv2010.1


How reproducible:

Always when installing with "python setup.py install" or easy_install.


Steps to Reproduce:
1. easy_install -U Pylons
2.
3.



--
Configure bugmail: https://qa.mandriva.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Loading...