Ticket #30331: pymol_numpy.diff

File pymol_numpy.diff, 2.7 KB (added by howarth@…, 13 years ago)

pymol_numpy.diff to use oldnumeric support

  • contrib/pyopengl/_glumodule.c

    old new  
    652652#elif defined(HAVE_EXTENSIONS_ARRAYOBJECT_H)
    653653#include "Extensions/arrayobject.h"
    654654#elif defined(HAVE_NUMERIC_ARRAYOBJECT_H)
    655 #include "Numeric/arrayobject.h"
     655#include "numpy/oldnumeric.h"
    656656#elif defined(HAVE_NUMERICAL_ARRAYOBJECT_H)
    657657#include "numerical/arrayobject.h"
    658658#else
  • contrib/pyopengl/_openglmodule.c

    old new  
    9393#elif defined(HAVE_EXTENSIONS_ARRAYOBJECT_H)
    9494#include "Extensions/arrayobject.h"
    9595#elif defined(HAVE_NUMERIC_ARRAYOBJECT_H)
    96 #include "Numeric/arrayobject.h"
     96#include "numpy/oldnumeric.h"
    9797#elif defined(HAVE_NUMERICAL_ARRAYOBJECT_H)
    9898#include "numerical/arrayobject.h"
    9999#else
  • contrib/pyopengl/openglutil.h

    old new  
    1414#elif defined(HAVE_EXTENSIONS_ARRAYOBJECT_H)
    1515#include "Extensions/arrayobject.h"
    1616#elif defined(HAVE_NUMERIC_ARRAYOBJECT_H)
    17 #include "Numeric/arrayobject.h"
     17#include "numpy/oldnumeric.h"
    1818#elif defined(HAVE_NUMERICAL_ARRAYOBJECT_H)
    1919#include "numerical/arrayobject.h"
    2020#else
  • modules/pymol/opengl/__init__.py

    old new  
     1## Automatically adapted for numpy.oldnumeric Jul 09, 2010 by -c
     2
    13# PyOpenGL: modified for usage inside of PyMOL
    24
    35try:
    4     import multiarray
     6    import numpy.oldnumeric as multiarray
    57    _numeric = 1
    68except ImportError:
    79    _numeric = 0
  • modules/pymol/opengl/gl/__init__.py

    old new  
     1## Automatically adapted for numpy.oldnumeric Jul 09, 2010 by -c
     2
    13import sys
    24from pymol import opengl
    35
     
    1315"""
    1416
    1517if opengl._numeric:
    16     from Numeric import ArrayType
     18    from numpy.oldnumeric import ArrayType
    1719    try:
    1820        import _opengl_num
    1921        _opengl = _opengl_num
  • modules/pymol/opengl/glu/__init__.py

    old new  
     1## Automatically adapted for numpy.oldnumeric Jul 09, 2010 by -c
     2
    13# $Id: __init__.py 336 2001-02-24 12:11:45Z wdelano $
    24import sys
    35from pymol import opengl
    46
    57if opengl._numeric:
    6     from Numeric import ArrayType
     8    from numpy.oldnumeric import ArrayType
    79    try:
    810        import _glu_num
    911        _glu = _glu_num