Skip to content

Commit

Permalink
Progress towards Python 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeiOssokine committed Oct 5, 2023
1 parent 2bef0e9 commit 8049ae7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
8 changes: 2 additions & 6 deletions gsl_dist/array_includes.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
"""
WARNING: File Generated during build. DO NOT MODIFY!!!
"""
import numpy as np

array_include_dirs = []
from numpy.distutils.misc_util import get_numpy_include_dirs
array_include_dirs = get_numpy_include_dirs()
array_include_dirs.append(np.get_include())
8 changes: 1 addition & 7 deletions gsl_dist/gsl_Extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import re
import string
import types
import imp
from sys import argv,version_info

from gsl_Location import gsl_Location
Expand Down Expand Up @@ -108,12 +107,7 @@ def __init__(self, name, sources,
# test if Numeric module is available
if define_macros is None:
define_macros=[]
try:
imp.find_module("Numeric")
define_macros = define_macros + [("NUMERIC",1),]
except ImportError:
define_macros = define_macros + [("NUMERIC",0), ]

define_macros = define_macros + [("NUMERIC",0), ]
if undef_macros == None:
undef_macros = []
if 'NDEBUG' not in undef_macros:
Expand Down

0 comments on commit 8049ae7

Please sign in to comment.