0

This question is similar to setuptools: adding additional files outside package but I cannot get their approach to work so I created a new question.

My package is structured as

setup.py
src/
    __init__.py
    things.py
examples/
    various.dat
    folder1/
        various1.dat
        various2.log

Due to some reasons, I cannot alter the project structure. I want to install the package such that the content in src will be installed into mypkg and all of the files in examples will be in the mypkg. So the installed mypkg should look like

__init__.py
things.py
examples/
    various.dat
    folder1/
        various1.dat
        various2.log

I just cannot get the examples to be installed, when I have

setup(
    packages=['mypkg'],
    package_dir={'mypkg': 'src'},
    package_data={'': ['examples/*',]},
    include_package_data=True,
    )

and graft examples in MANIFEST.in.

xiki_tempula
  • 43
  • 1
  • 5

0 Answers0