Skip to content Skip to sidebar Skip to footer

Pybuilder - Non-python Files Are Not Packaged

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 m

Solution 1:

I've emailed Max(https://github.com/mriehl), who is one among the contributor of PyBuilder code in github. He suggested me to try project.install_file() option.

I tried that option and it worked for me. Thanks to Max. I want to share that info in this thread, so that it will be useful to someone in future !

In the background project.install_file() is modifying data_files part of setup.py of distutils.

My configuration in the build.py are as follows,

@initdefinitialize(project):

    # File is installed relative to sys.prefix
    project.install_file("Lib/site-packages/foo/conf","foo/conf/settings.ini")

Post a Comment for "Pybuilder - Non-python Files Are Not Packaged"