Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay adding entry points to finalize_distribution_options #19

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 6 additions & 9 deletions setuptools_gettext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
import os
import re
from distutils import log
from distutils.command.build import build
from distutils.command.clean import clean
from distutils.command.install import install
from distutils.core import Command
from distutils.dep_util import newer
from distutils.spawn import find_executable
Expand Down Expand Up @@ -237,9 +234,9 @@ def has_gettext(_c) -> bool:


def pyprojecttoml_config(dist: Distribution) -> None:
pass


build.sub_commands.append(('build_mo', has_gettext))
clean.sub_commands.append(('clean_mo', has_gettext))
install.sub_commands.append(('install_mo', has_gettext))
build = dist.get_command_class("build")
build.sub_commands.append(('build_mo', has_gettext))
clean = dist.get_command_class("clean")
clean.sub_commands.append(('clean_mo', has_gettext))
install = dist.get_command_class("install")
install.sub_commands.append(('install_mo', has_gettext))