Revert "*/py-{gdbm,sqlite3,tkinter}: switch from distutils to setuptools"

This reverts commit 7446740638.

The change is not valid as setuptools have deprecated setup.py,
while distutils will be supported in existing point releases.
Python 3.12 support will require different solution.

PR:		268283
This commit is contained in:
Dmitry Marakasov 2022-12-15 20:29:27 +03:00
parent 93bdb037b7
commit 62723bbe60
3 changed files with 17 additions and 20 deletions

View File

@ -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"]

View File

@ -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"]

View File

@ -3,20 +3,20 @@
# python setup.py install
#
import os
import sys
import os, string
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]]
tkversion = "%%TK_VER%%"
prefix = os.path.normpath(sys.prefix)
prefix = sysconfig.PREFIX
# Python 1.5 doesn't have os.getenv()?
x11base = os.environ['LOCALBASE'] or '/usr/X11R6'
inc_dirs = [prefix + "/include",