summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-07-12 09:16:44 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-07-12 09:16:44 (GMT)
commit6b7d69d9b408f199dca2c3d94ff2326636c19e50 (patch)
tree161aa6245e35c42cc4b0a86a87f5349d19640675 /Lib/distutils
parent60519e8d40d779561bfdbd0a2101472e405c6754 (diff)
downloadcpython-6b7d69d9b408f199dca2c3d94ff2326636c19e50.zip
cpython-6b7d69d9b408f199dca2c3d94ff2326636c19e50.tar.gz
cpython-6b7d69d9b408f199dca2c3d94ff2326636c19e50.tar.bz2
Well, Fred never did explain why the code to determine whether the
calling Python was installed was so complicated, so I simplified it. This should get the snake-farm's build scripts working again.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/sysconfig.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index e9b728e..48672d6 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -29,13 +29,9 @@ EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
argv0_path = os.path.dirname(os.path.abspath(sys.executable))
landmark = os.path.join(argv0_path, "Modules", "Setup")
-if not os.path.isfile(landmark):
- python_build = 0
-elif os.path.isfile(os.path.join(argv0_path, "Lib", "os.py")):
- python_build = 1
-else:
- python_build = os.path.isfile(os.path.join(os.path.dirname(argv0_path),
- "Lib", "os.py"))
+
+python_build = os.path.isfile(landmark)
+
del argv0_path, landmark