diff --git a/gruut-lang-fr/setup.py b/gruut-lang-fr/setup.py index 2aaeb82..09c6e6f 100644 --- a/gruut-lang-fr/setup.py +++ b/gruut-lang-fr/setup.py @@ -15,6 +15,13 @@ with open(version_path, "r") as version_file: version = version_file.read().strip() + +extra_files = [] + +pos_model = module_dir / "pos" / "model.crf" +if pos_model.is_file(): + extra_files.append(str(pos_model.relative_to(module_dir))) + # ----------------------------------------------------------------------------- setuptools.setup( @@ -33,6 +40,7 @@ "espeak/lexicon.db", "espeak/g2p/model.crf", ] + + extra_files }, classifiers=[ "Programming Language :: Python :: 3",