diff options
Diffstat (limited to 'databases')
-rw-r--r-- | databases/py-gdbm/files/setup3.py | 12 | ||||
-rw-r--r-- | databases/py-sqlite3/files/setup3.py | 13 |
2 files changed, 11 insertions, 14 deletions
diff --git a/databases/py-gdbm/files/setup3.py b/databases/py-gdbm/files/setup3.py index 26df5565cfd3..0a947466d03e 100644 --- a/databases/py-gdbm/files/setup3.py +++ b/databases/py-gdbm/files/setup3.py @@ -3,19 +3,17 @@ # python setup.py install # -import os -import sys - try: - import setuptools - from setuptools.command.install import install - from setuptools import setup, Extension + import distutils + from distutils import sysconfig + from distutils.command.install import install + from distutils.core import setup, Extension except: raise SystemExit("Distutils problem") install.sub_commands = [x for x in install.sub_commands if 'egg' not in x[0]] -prefix = os.path.normpath(sys.prefix) +prefix = sysconfig.PREFIX inc_dirs = [prefix + "/include"] lib_dirs = [prefix + "/lib"] libs = ["gdbm"] diff --git a/databases/py-sqlite3/files/setup3.py b/databases/py-sqlite3/files/setup3.py index 1a763dd8cb71..944c89920852 100644 --- a/databases/py-sqlite3/files/setup3.py +++ b/databases/py-sqlite3/files/setup3.py @@ -3,20 +3,19 @@ # python setup.py install # -import os import platform -import sys try: - import setuptools - from setuptools.command.install import install - from setuptools import setup, Extension + import distutils + from distutils import sysconfig + from distutils.command.install import install + from distutils.core import setup, Extension except: - raise SystemExit("Setuptools problem") + raise SystemExit("Distutils problem") install.sub_commands = [x for x in install.sub_commands if 'egg' not in x[0]] -prefix = os.path.normpath(sys.prefix) +prefix = sysconfig.PREFIX inc_dirs = [prefix + "/include", "Modules/_sqlite"] lib_dirs = [prefix + "/lib"] libs = ["sqlite3"] |