- packages=['librarian'],
- package_data={'librarian': ['xslt/*.xslt', 'epub/*', 'mobi/*', 'pdf/*', 'fb2/*', 'fonts/*'] +
- whole_tree(os.path.join(os.path.dirname(__file__), 'librarian'), 'res') +
- whole_tree(os.path.join(os.path.dirname(__file__), 'librarian'), 'font-optimizer')},
+ packages=find_packages(where="src"),
+ package_dir={"": "src"},
+ package_data={'librarian': ['xslt/*.xslt', 'xslt/*.xml', 'epub/*', 'pdf/*', 'fb2/*', 'fonts/*'] +
+ whole_tree(os.path.join(os.path.dirname(__file__), 'src/librarian'), 'res') +
+ whole_tree(os.path.join(os.path.dirname(__file__), 'src/librarian'), 'font-optimizer')},