aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-29 11:41:10 +0200
committerWojtek Kosior <koszko@koszko.org>2022-10-29 11:41:10 +0200
commit3a37caf3dddc479bcf524bce9f5ba2824e22f424 (patch)
treeeec35391d0cbefcb1dd47425764aea0860725625
parent1dc7a15bc85a89100b9fcbc8f1f153e2e33a2c3d (diff)
downloadhaketilo-hydrilla-3a37caf3dddc479bcf524bce9f5ba2824e22f424.tar.gz
haketilo-hydrilla-3a37caf3dddc479bcf524bce9f5ba2824e22f424.zip
[builder][server][proxy] remove unneeded custom sdist setuptools command
-rwxr-xr-xsetup.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/setup.py b/setup.py
index a8a5bfa..5f4e532 100755
--- a/setup.py
+++ b/setup.py
@@ -23,27 +23,6 @@ class CustomBuildCommand(build_py):
super().run(*args, **kwargs)
-class CustomSdistCommand(sdist):
- """
- The sdist command but prevents compiled message catalogs from being included
- in the archive.
- """
- def run(self, *args, **kwargs):
- """Wrapper around sdist's original run() method."""
- locales_dir = here / 'src/hydrilla/server/locales'
- locale_files = {}
-
- for path in locales_dir.rglob('*.mo'):
- locale_files[path] = path.read_bytes()
-
- for path in locale_files:
- path.unlink()
-
- super().run(*args, **kwargs)
-
- for path, contents in locale_files.items():
- path.write_bytes(contents)
-
class BuildDocCommand(Command):
"""
Command to create an `htmldoc/` catalog with Haketilo documentation inside
@@ -97,6 +76,5 @@ class BuildDocCommand(Command):
setuptools.setup(cmdclass = {
'build_py': CustomBuildCommand,
- 'sdist': CustomSdistCommand,
'build_htmldoc': BuildDocCommand
})