appveyor: add printing host_info (python settings, VS versions)
This commit is contained in:
committed by
Ralph Lange
parent
e2399dc7f3
commit
c3918cdbaa
@@ -235,6 +235,7 @@ class TestDefaultModuleURLs(unittest.TestCase):
|
||||
.format(mod, do.setup[mod + '_REPOURL']))
|
||||
|
||||
if __name__ == "__main__":
|
||||
do.host_info()
|
||||
if 'SET' in os.environ and os.environ['SET'] == "test00":
|
||||
unittest.main()
|
||||
else:
|
||||
|
||||
@@ -39,6 +39,21 @@ else:
|
||||
|
||||
zip7 = 'C:\\Program Files\\7-Zip\\7z'
|
||||
|
||||
def host_info():
|
||||
print(sys.version)
|
||||
print('PYTHONPATH')
|
||||
for dname in sys.path:
|
||||
print(' ', dname)
|
||||
print('platform = ', distutils.util.get_platform())
|
||||
|
||||
print('Listing available VS versions')
|
||||
from fnmatch import fnmatch
|
||||
for base in (r'C:\Program Files (x86)', r'C:\Program Files'):
|
||||
for root, dirs, files in os.walk(base):
|
||||
for fname in files:
|
||||
if fnmatch(fname, 'vcvars*.bat'):
|
||||
print('Found', os.path.join(root, fname))
|
||||
|
||||
# Used from unittests
|
||||
def clear_lists():
|
||||
del seen_setups[:]
|
||||
@@ -258,11 +273,7 @@ def add_dependency(dep, tag):
|
||||
update_release_local(setup[dep+"_VARNAME"], place)
|
||||
|
||||
def prepare():
|
||||
print(sys.version)
|
||||
print('PYTHONPATH')
|
||||
for dname in sys.path:
|
||||
print(' ', dname)
|
||||
print('platform = ', distutils.util.get_platform())
|
||||
host_info()
|
||||
|
||||
print('{0}Loading setup files{1}'.format(ANSI_YELLOW, ANSI_RESET))
|
||||
source_set('defaults')
|
||||
|
||||
Reference in New Issue
Block a user