I've got a program/joke that needs a reasonably large data structure to operate, (a dictionary that takes a few seconds to construct) and I would like to create and pickle it into the installation dir when running python setup.py install
.
setup()
in distutils.core
looks like it shouldn't exit, so I thought that I could just import my module and call the function after calling setup()
in setup.py, but it doesn't seem to be working, even though installation does work.
This is what my setup.py looks like right now:
from distutils.core import setup
setup(...
)
from phoneoops import utils
utils.get_hashed_dictionary(save=True)