Commit feb2d39d089dd7436954c5bc2dfc376d528478c5
1 parent
d23e0f92
Implement Python version dependent import of sysconfig
Showing
1 changed file
with
5 additions
and
2 deletions
pyext/setup.py.in
... | ... | @@ -18,11 +18,14 @@ |
18 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
19 | 19 | # # |
20 | 20 | ############################################################################# |
21 | +import sys | |
22 | +if sys.version_info < (3, 2): | |
23 | + from distutils import sysconfig | |
24 | +else: | |
25 | + import sysconfig | |
21 | 26 | from setuptools import setup, Extension |
22 | -import sysconfig | |
23 | 27 | import glob |
24 | 28 | import os |
25 | -import sys | |
26 | 29 | |
27 | 30 | # Define package name |
28 | 31 | pkg_name = 'ctools' | ... | ... |