My current project is in python. For build package generation + unit test running, I'm using Pybuilder utility and it is pretty cool. I used the wheel distribution to install the module in other systems.
There exist a config file from which certain settings are read by the application. settings.ini file is in following path,
PROJECT-ROOT
|---- src
|-main
|-python
|- foo
|- conf
| |- settings.ini
|
|-test.py
|-access.py
pybuilder automatically creates setup.py from the build.py script. The problem is that the binary wheel distribution is not packaging the non-python files(*.ini file). While searching on SO posts, got information like adding in MANIFEST.mf will resolve this issue. But while adding
project._manifest_include_directory('foo/conf', ('*.ini',))
It only updated foo/conf/settings.ini
in sdist and not on the bdist(wheel). I want the wheel file to include settings.ini in the conf/ directory. On googling, got information that addition of package_data
field in setup.py will resolve this issue. But with Pybuilder's build.py, I'm unable to do this successfully.
Can any one help me to resolve this issue?