Opened 16 years ago
Closed 14 years ago
#2663 closed defect (fixed)
unique() function in setup.py reorders lib_dirs
Reported by: | warmerdam | Owned by: | hobu |
---|---|---|---|
Priority: | normal | Milestone: | 5.6 release |
Component: | MapScript-Python | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | setup.py |
Cc: |
Description
The unique() function in mapserver/mapscript/python/setup.py does not preserve the order of the items passed in. This can be bad with order of the library path matters.
This variation on the unique function *does* preserve order.
# Function needed to make unique lists. def unique(list): ret_list = [] dict = {} for item in list: if not dict.has_key(item): dict[item] = '' ret_list.append( item ) return ret_list
Note:
See TracTickets
for help on using tickets.
Applied to trunk in r9510