##// END OF EJS Templates
Fix bug in our specification of data_files....
Fix bug in our specification of data_files. As best I can tell, we've been mis-specifying data_files for ages. For some reason with a plain setup.py it worked fine, but using a customized cmdclass for build_py, the error shows up. The problem was that we were returning a list of triples for data_files, and the spec clearly says they must be pairs: http://docs.python.org/distutils/setupscript.html?highlight=data_files#installing-additional-files

File last commit:

r2827:34964c21
r3205:3613aa4c
Show More
backend_payload.py
26 lines | 740 B | text/x-python | PythonLexer
""" Provides basic funtionality for payload backends.
"""
# Local imports.
from IPython.core.interactiveshell import InteractiveShell
def add_plot_payload(format, data, metadata={}):
""" Add a plot payload to the current execution reply.
Parameters:
-----------
format : str
Identifies the format of the plot data.
data : str
The raw plot data.
metadata : dict, optional [default empty]
Allows for specification of additional information about the plot data.
"""
payload = dict(
source='IPython.zmq.pylab.backend_payload.add_plot_payload',
format=format, data=data, metadata=metadata
)
InteractiveShell.instance().payload_manager.write_payload(payload)