File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import sys
44import ctypes
55import ctypes .util
6- from distutils .sysconfig import get_python_lib
76from itertools import product
87from subprocess import Popen , PIPE
98from sys import version_info
@@ -14,6 +13,12 @@ def get_config_var(name):
1413 if name == 'SO' :
1514 return '.so'
1615 raise Exception ('Not implemented' )
16+ try :
17+ from distutils .sysconfig import get_python_lib
18+ except ModuleNotFoundError :
19+ import sysconfig
20+ def get_python_lib ():
21+ return sysconfig .get_path ("purelib" )
1722
1823
1924def _insert_ko (modprobe , modname ):
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
33__pkgname__ = "python-iptables"
4- __version__ = "1.0.2-dev "
4+ __version__ = "1.1.0 "
Original file line number Diff line number Diff line change 33"""python-iptables setup script"""
44
55from setuptools import setup , Extension
6- #from distutils.core import setup, Extension
76
87# make pyflakes happy
98__pkgname__ = None
You can’t perform that action at this time.
0 commit comments