Remove test dep on installed dh-python's pydist
Hard-coded file lookup in /usr/share/dh-python/dist/ means that the test suite
only passes if dh-python is installed (and is a sufficiently recent version)
Stuart Prescott authored 1 year, 7 months ago
Stefano Rivera committed 1 year, 7 months ago
139 | 139 | if isdir(dname): |
140 | 140 | to_check.extend(join(dname, i) for i in os.listdir(dname)) |
141 | 141 | |
142 | fbname = '/usr/share/dh-python/dist/{}_fallback'.format(impl) | |
142 | fbdir = os.environ.get('DH_PYTHON_DIST', '/usr/share/dh-python/dist/') | |
143 | fbname = join(fbdir, '{}_fallback'.format(impl)) | |
143 | 144 | if exists(fbname): # fall back generated at dh-python build time |
144 | 145 | to_check.append(fbname) # last one! |
145 | 146 |