aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/py-tkinter/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/py-tkinter/files')
-rw-r--r--x11-toolkits/py-tkinter/files/setup3.py12
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",