[mousetrap/gnome3-wip: 187/240] Remove *.mo files in the Makefile and not setup.py
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 187/240] Remove *.mo files in the Makefile and not setup.py
- Date: Mon, 8 Sep 2014 15:28:17 +0000 (UTC)
commit 8d2e463b84dfd0379acc63f33b0e528de8c11a2b
Author: Kevin Brown <kevin kevinbrown in>
Date: Fri Jun 27 23:02:11 2014 -0400
Remove *.mo files in the Makefile and not setup.py
Makefile.am | 14 +++++++-------
setup.py | 10 ----------
2 files changed, 7 insertions(+), 17 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index de30a02..b69948d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,23 +17,20 @@ all-local:
##############################################################################
# TARGET: dist
-dist-hook: gen-ChangeLog gen-AUTHORS del-pyc
+dist-hook: ChangeLog-local AUTHORS-local clean
-.PHONY: gen-ChangeLog gen-AUTHORS del-pyc
-gen-ChangeLog:
+#.PHONY: gen-ChangeLog gen-AUTHORS
+ChangeLog-local:
echo Generating "$(distdir)/ChangeLog"
echo "# Generated by Makefile.am. Do not edit." > "$(distdir)/ChangeLog"
git log --stat >> "$(distdir)/ChangeLog"
-gen-AUTHORS:
+AUTHORS-local:
echo Generating "$(distdir)/AUTHORS"
echo "# Generated by Makefile.am. Do not edit." > "$(distdir)/AUTHORS"
echo "Commits Author" >> "$(distdir)/AUTHORS"
git shortlog -s -e -n | sed 's/@/ AT /g' | sed 's/\./ DOT /g' >> "$(distdir)/AUTHORS"
-del-pyc:
- find . -name '*.pyc' -delete
-
##############################################################################
# TARGET: install
@@ -59,6 +56,9 @@ uninstall-local:
clean-local:
$(PYTHON) $(srcdir)/setup.py clean --all
+ find $(srcdir) -name '*.pyc' -delete
+ find $(srcdir) -name '*.pyo' -delete
+ find $(srcdir) -name '*.mo' -delete
##############################################################################
diff --git a/setup.py b/setup.py
index 52be3f6..48e4379 100644
--- a/setup.py
+++ b/setup.py
@@ -98,16 +98,6 @@ On yum-based systems:
The installation not work as expected without this dependency.
""")
- if not "install" in self.distribution.script_args:
- sys.stdout.write("Removing generated locale files...\n")
-
- compiled_files = glob.glob(LOCALE_PATH + "/**/LC_MESSAGES/*.mo")
-
- for file_name in compiled_files:
- sys.stdout.write("Removing compiled locale %s\n" % file_name)
-
- os.remove(file_name)
-
egg_info.run(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]