else: # only add them if we need them if provide_pytz: add_pytz() print 'adding pytz' if provide_dateutil: add_dateutil() # Add installation of mathtex if not check_for_mathtex(): package_dir['mathtex'] = 'lib/mathtex/mathtex' packages.extend(['mathtex', 'mathtex.backends']) print_raw("") print_raw("OPTIONAL USETEX DEPENDENCIES") check_for_dvipng() check_for_ghostscript() check_for_latex() check_for_pdftops() print_raw("") print_raw("[Edit setup.cfg to suppress the above messages]") print_line() # Write the default matplotlibrc file if options['backend']: rc['backend'] = options['backend'] template = file('matplotlibrc.template').read() file('lib/matplotlib/mpl-data/matplotlibrc', 'w').write(template % rc) # Write the default matplotlib.conf file template = file('lib/matplotlib/mpl-data/matplotlib.conf.template').read() template = template.replace("datapath = ", "#datapath = ")
if sys.platform=='win32': # always add these to the win32 installer add_pytz() add_dateutil() else: # only add them if we need them if provide_pytz: add_pytz() print_raw("adding pytz") if provide_dateutil: add_dateutil() print_raw("") print_raw("OPTIONAL USETEX DEPENDENCIES") check_for_dvipng() check_for_ghostscript() check_for_latex() check_for_pdftops() print_raw("") print_raw("[Edit setup.cfg to suppress the above messages]") print_line() # Write the default matplotlibrc file if options['backend']: rc['backend'] = options['backend'] template = open('matplotlibrc.template').read() open('lib/matplotlib/mpl-data/matplotlibrc', 'w').write(template%rc) # Write the default matplotlib.conf file template = open('lib/matplotlib/mpl-data/matplotlib.conf.template').read() template = template.replace("datapath = ", "#datapath = ")