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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.