I have tried all the option available on stackoverflow, still could not get etc directory to get copied to install path with setup.py install
command. I have code in below structure.
├── setup.py
├── MANIFEST.in
├── etc/
│ ├── config.yaml
│ └── message.xml
└── src/
└── my-app/
├── __init__.py
└── main.py
I am using setuptools version 65.6.3 with python 3.7.5
setup.py
import setuptools
setuptools.setup(
name='my-app',
version='0.1',
package_dir=("","src"),
packages=setuptools.find_packages("src"),
include_package_data=True,
entry_points={
"console_scripts":[
"my_main = my-app.main:main"
]
})
MANIFEST.in
recursive-include etc *.yml *.xml
I have also tried below in MANIFEST
include etc/*.yml
include etc/*.xml