Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
list_packages not working correctly #110
I just started using pyb on an existing project. I ran into a weird issue where the first letter of all packages was missing in all the packages in setup.py. i.e. I have:
packages = ['oaders', 'awdata', 'onfig',..]
packages = ['loaders', r'awdata', 'config',..]
I fixed by redefining Project.list_packages in build.py, removing the [1:] splice (see core_plugin.py)
from pybuilder.core import use_plugin, init
name = "loader"
Actually the override path properties are not supposed to have a trailing slash, that's why pybuilder is eating a character from the package.
I guess it would be cleaner to check for the trailing slash case and handle it, so that's what I'll do. Thanks for the report!
It's as I thought. You start out with the path to your package, say
so this leaves
But if your source path is
Both variants (trailing slash / no trailing slash) should work now. Thanks again for reporting!