I have some .pkl files inside a folder (say data_pkl) in a package(pip installable) and I want to load these files in some .py outside package. However, I'm unsure on following
- should I write
MANIFEST.infile - are there any changes that has to be made in the
setup.pyfile - do I need to put
__init__.pyinside thedata_pklfolder - how can I import the .pkl files inside a python script using the package.
EDIT:
include_package_data=True in setup.py.
If set to True, this tells setuptools to automatically include any data files it finds inside your package directories, that are either under CVS or Subversion control, or which are specified by your MANIFEST.in file. This answers 1 and 2.