Skip to content

Commit

Permalink
Make trubar a setup dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
markotoplak committed Sep 20, 2024
1 parent 28ddfe3 commit 859470f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ def run(self):
self.compile_to_multilingual()

def compile_to_multilingual(self):
try:
from trubar import translate
except ImportError:
return
from trubar import translate

package_dir = os.path.dirname(os.path.abspath(__file__))
translate(
Expand All @@ -98,6 +95,7 @@ def compile_to_multilingual(self):
license=LICENSE,
packages=PACKAGES,
package_data=PACKAGE_DATA,
setup_requires=["trubar>=0.3.3"],
install_requires=INSTALL_REQUIRES,
cmdclass={
'install': InstallMultilingualCommand,
Expand Down

0 comments on commit 859470f

Please sign in to comment.