1

A Python package should contain some data files alongside with Python sources.

  1. How to make setuptools or distutils to install the data files?

  2. How can my Python code know which directories my data files are installed in?

1

1 Answer 1

1

Following will answer your Q#1:

There is a concept of data_file and package_data.

Package_data is used to include documentation and data_files is used to include configuration file, messages and data file.

Sign up to request clarification or add additional context in comments.

1 Comment

Can anyone emphasize that this is not a duplicate question?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.