Create a Python package. What is the error?

I have a package with this structure:
-- some of the
-- source
---- file.txt

I need the contents of the source was distributed along with the package and I could open these files in using open()

I write in > setup:
data_files=[('source', ['source/file.txt'])]

But when installing, get:
error: can't copy 'source\file.txt': doesn't exist or not a regular file
What is the error and how to do it right?
June 10th 19 at 14:37
0 answer

Find more questions by tags Python