diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2022-12-15 17:29:27 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2022-12-15 17:31:40 +0000 |
commit | 62723bbe60705c70cf2dceb23a22a73bdd4d4ae3 (patch) | |
tree | 170da066e837a32118f6b59149b4ed2345802bec /x11-toolkits/py-tkinter/files | |
parent | 93bdb037b712f7a2fef0a7caea4f159f1a2fe297 (diff) | |
download | ports-62723bbe60705c70cf2dceb23a22a73bdd4d4ae3.tar.gz ports-62723bbe60705c70cf2dceb23a22a73bdd4d4ae3.zip |
Diffstat (limited to 'x11-toolkits/py-tkinter/files')
-rw-r--r-- | x11-toolkits/py-tkinter/files/setup3.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/x11-toolkits/py-tkinter/files/setup3.py b/x11-toolkits/py-tkinter/files/setup3.py index d0a7fc30c0bf..bcf53d093857 100644 --- a/x11-toolkits/py-tkinter/files/setup3.py +++ b/x11-toolkits/py-tkinter/files/setup3.py @@ -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", |