[Python-checkins] CVS: python/dist/src/Tools/freeze checkextensions.py

Guido van Rossum guido@cnri.reston.va.us
Wed, 23 Jun 1999 17:37:58 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Tools/freeze
In directory eric:/projects/python/develop/guido/src/Tools/freeze

Modified Files:
	checkextensions.py 
Log Message:
Simplified version of a patch by Chih-Hao Huang, who wrote:

"""
When there are additional Setup files, specified by -e option of freeze,
checkextenstions.py assumes that *.o, *.a, -Lpath, and -Rpath are all
relative to where the Setup file is. select() inserts the path to the
Setup file to make them absolute. However, the assumption is not true.
There are cases that absolute paths are specified for them. The inserted
prefix, by select(), results in error.

The following fix check for absolute paths. The assumption is: an
absolute path begins with either '/' or '$'. In the latter case, it is
from the environmental variable. (Variables defined locally in the Setup
file have already been handled by expandvars())
"""

My version of the patch has been verified by Charles Waldman (a
colleague of Chih-Hao).