I have a directory structure as below.
.
├── package
├── app
│ ├── __init__.py
│ ├── file1.py
│ └── file2.py
├── master_sql_folder
│ │
│ │──sql_folder_1
│ │ ├── world.sql
│ │ ├── earth.sql
│ │
│ └──sql_folder_2
│ ├── planet.sql
│ ├── sun.sql
│
└── wrapper_scripts
│ ├── wrapper.py
│ └── __init__.py
├── setup.py
I am trying to include all the sql files that exist in sub folders of master_sql_folder ( world.sql, earth.sql, planet.sql, sun.sql ) to setuptools while packaging as egg,I cannot use sql_folder_1 and sql_folder_2 in the path as new folders can be added in future under master_sql_folder and I need the code to read them too.I have tried adding the following lines to my setup.py but its not including the sql files in the build.
package_data={'master_sql_folder':['*']}
packages=['app', 'wrapper_scripts']
I appreciate your help in advance.