Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion iptc/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import sys
import ctypes
import ctypes.util
from distutils.sysconfig import get_python_lib
from itertools import product
from subprocess import Popen, PIPE
from sys import version_info
Expand All @@ -14,6 +13,12 @@ def get_config_var(name):
if name == 'SO':
return '.so'
raise Exception('Not implemented')
try:
from distutils.sysconfig import get_python_lib
except ModuleNotFoundError:
import sysconfig
def get_python_lib():
return sysconfig.get_path("purelib")


def _insert_ko(modprobe, modname):
Expand Down
2 changes: 1 addition & 1 deletion iptc/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-

__pkgname__ = "python-iptables"
__version__ = "1.0.2-dev"
__version__ = "1.1.0"
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""python-iptables setup script"""

from setuptools import setup, Extension
#from distutils.core import setup, Extension

# make pyflakes happy
__pkgname__ = None
Expand Down
Loading