del argv0_path, landmark
+def get_python_version ():
+ """Return a string containing the major and minor Python version,
+ leaving off the patchlevel. Sample return values could be '1.5'
+ or '2.2'.
+ """
+ return sys.version[:3]
+
+
def get_python_inc(plat_specific=0, prefix=None):
"""Return the directory containing installed Python header files.
if os.name == "posix":
libpython = os.path.join(prefix,
- "lib", "python" + sys.version[:3])
+ "lib", "python" + get_python_version())
if standard_lib:
return libpython
else: