#11619: linux kernel 3.0 causes headaches with some python modules
------------------------+---------------------------------------------------
Reporter: fbissey | Owner: tbd
Type: defect | Status: new
Priority: critical | Milestone: sage-4.7.2
Component: packages | Keywords:
Work_issues: | Upstream: Reported upstream. Developers
acknowledge bug.
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by fbissey):
That's the kind of solution debated (well copying not linking. More fun is
the checking for linux2:
{{{
grep -r linux2 /usr/lib64/python2.7/site-packages/*
/usr/lib64/python2.7/site-packages/IPython/Extensions/InterpreterExec.py:
sys.platform is: linux2
Binary file /usr/lib64/python2.7/site-
packages/IPython/Extensions/InterpreterExec.pyc matches
Binary file /usr/lib64/python2.7/site-
packages/IPython/Extensions/InterpreterExec.pyo matches
Binary file /usr/lib64/python2.7/site-
packages/IPython/testing/decorators_trial.pyo matches
/usr/lib64/python2.7/site-
packages/IPython/testing/decorators_trial.py:skip_linux =
skipif(sys.platform == 'linux2',
/usr/lib64/python2.7/site-
packages/IPython/testing/decorators_trial.py:skip_if_not_linux =
skipif(sys.platform != 'linux2',
Binary file /usr/lib64/python2.7/site-
packages/IPython/testing/decorators_trial.pyc matches
Binary file /usr/lib64/python2.7/site-
packages/IPython/testing/decorators.pyc matches
Binary file /usr/lib64/python2.7/site-
packages/IPython/testing/decorators.pyo matches
Binary file /usr/lib64/python2.7/site-
packages/IPython/testing/tests/test_decorators_trial.pyc matches
/usr/lib64/python2.7/site-
packages/IPython/testing/tests/test_decorators.py:
nt.assert_not_equals(sys.platform,'linux2',"This test can't run under
linux")
Binary file /usr/lib64/python2.7/site-
packages/IPython/testing/tests/test_decorators_trial.pyo matches
Binary file /usr/lib64/python2.7/site-
packages/IPython/testing/tests/test_decorators.pyo matches
Binary file /usr/lib64/python2.7/site-
packages/IPython/testing/tests/test_decorators.pyc matches
/usr/lib64/python2.7/site-
packages/IPython/testing/tests/test_decorators_trial.py:
self.assertNotEquals(sys.platform,'linux2',"This test can't run under
linux")
/usr/lib64/python2.7/site-
packages/IPython/testing/decorators.py:skip_linux = skipif(sys.platform ==
'linux2',
/usr/lib64/python2.7/site-
packages/IPython/testing/decorators.py:skip_if_not_linux =
skipif(sys.platform != 'linux2',
Binary file /usr/lib64/python2.7/site-packages/OpenGL/__init__.pyo matches
/usr/lib64/python2.7/site-packages/OpenGL/__init__.py:PlatformPlugin(
'linux2', 'OpenGL.platform.glx.GLXPlatform' )
Binary file /usr/lib64/python2.7/site-packages/OpenGL/__init__.pyc matches
Binary file /usr/lib64/python2.7/site-
packages/networkx/drawing/nx_agraph.pyc matches
/usr/lib64/python2.7/site-packages/networkx/drawing/nx_agraph.py: cmds
= {'darwin': 'open', 'linux2': 'xdg-open', 'win32': 'start'}
Binary file /usr/lib64/python2.7/site-
packages/networkx/drawing/nx_agraph.pyo matches
/usr/lib64/python2.7/site-packages/numpy/distutils/exec_command.py: posix
| linux2 | Debian (sid) Linux, Python 2.1.3+, 2.2.3+, 2.3.3
/usr/lib64/python2.7/site-packages/numpy/distutils/exec_command.py: posix
| linux2 | Red Hat 9 Linux, Python 2.1.3, 2.2.2, 2.3.2
Binary file /usr/lib64/python2.7/site-
packages/numpy/distutils/exec_command.pyo matches
/usr/lib64/python2.7/site-packages/numpy/distutils/cpuinfo.py:if
sys.platform.startswith('linux'): # variations: linux2,linux-i386 (any
others?)
Binary file /usr/lib64/python2.7/site-
packages/numpy/distutils/exec_command.pyc matches
/usr/lib64/python2.7/site-
packages/scipy/signal/tests/test_signaltools.py:if sys.platform ==
'linux2' and platform.architecture()[0] == '64bit':
Binary file /usr/lib64/python2.7/site-
packages/scipy/signal/tests/test_signaltools.pyc matches
Binary file /usr/lib64/python2.7/site-
packages/scipy/signal/tests/test_signaltools.pyo matches
/usr/lib64/python2.7/site-packages/sqlalchemy/connectors/mxodbc.py:
# this can be the string "linux2", and possibly others
Binary file /usr/lib64/python2.7/site-
packages/sympy/thirdparty/pyglet/pyglet/lib.pyc matches
Binary file /usr/lib64/python2.7/site-
packages/sympy/thirdparty/pyglet/pyglet/lib.pyo matches
/usr/lib64/python2.7/site-packages/sympy/thirdparty/pyglet/pyglet/lib.py:
if self.platform == 'linux2':
/usr/lib64/python2.7/site-
packages/sympy/thirdparty/pyglet/pyglet/lib.py:elif sys.platform ==
'linux2':
/usr/lib64/python2.7/site-packages/sympy/galgebra/latex_ex.py:
if sys.platform == 'linux2':
Binary file /usr/lib64/python2.7/site-packages/sympy/galgebra/latex_ex.pyo
matches
Binary file /usr/lib64/python2.7/site-packages/sympy/galgebra/latex_ex.pyc
matches
Binary file /usr/lib64/python2.7/site-
packages/twisted/internet/test/test_unix.pyo matches
Binary file /usr/lib64/python2.7/site-
packages/twisted/internet/test/test_unix.pyc matches
/usr/lib64/python2.7/site-packages/twisted/internet/test/test_unix.py:
if platform != 'linux2':
/usr/lib64/python2.7/site-packages/twisted/internet/test/test_unix.py:
if platform != 'linux2':
/usr/lib64/python2.7/site-packages/twisted/internet/test/test_unix.py:
if platform != 'linux2':
}}}
ipython, distutils, numpy, scipy, sympy, networkx, sqlalchemy and twisted.
And there are stuff that don't install in site-packages like scons.
{{{
grep -r linux2 /usr/lib64/scons-2.0.1/*
/usr/lib64/scons-2.0.1/SCons/Tool/intelc.py:is_linux = sys.platform ==
'linux2'
}}}
I think that's a check for the intel compiler so we shouldn't worry about
that one....
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11619#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.